SDL: The Google Pixel fingerprint sensor isn't actually a joystick

From a2e856523089d5d95ba565a26a35ab367c960f12 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 26 Nov 2021 11:04:15 -0800
Subject: [PATCH] The Google Pixel fingerprint sensor isn't actually a joystick

Fixes https://github.com/libsdl-org/SDL/issues/4971
---
 src/joystick/SDL_gamecontroller.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index 305139f7ce3..0c20e63b913 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -1820,6 +1820,13 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
     }
 #endif
 
+#if defined(__ANDROID__)
+    if (name && SDL_strcmp(name, "uinput-fpc") == 0) {
+        /* The Google Pixel fingerprint sensor reports itself as a joystick */
+        return SDL_TRUE;
+    }
+#endif
+
     if (SDL_allowed_controllers.num_entries == 0 &&
         SDL_ignored_controllers.num_entries == 0) {
         return SDL_FALSE;