Commit f6c2c22d38afbbfbb1c5b7caab29f3302a57e9f1

Sam Lantinga 2022-08-25T22:25:25

Don't try to use the charging port for the PowerA wireless controller as an input device

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index ba2918b..80edea5 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -2618,6 +2618,7 @@ SDL_bool SDL_ShouldIgnoreJoystick(const char *name, SDL_JoystickGUID guid)
         MAKE_VIDPID(0x1532, 0x0266),  /* Razer Huntman V2 Analog, non-functional DInput device */
         MAKE_VIDPID(0x1532, 0x0282),  /* Razer Huntman Mini Analog, non-functional DInput device */
         MAKE_VIDPID(0x26ce, 0x01a2),  /* ASRock LED Controller */
+        MAKE_VIDPID(0x20d6, 0x0002),  /* PowerA Enhanced Wireless Controller for Nintendo Switch (charging port only) */
     };
 
     static Uint32 rog_chakram_list[] = {