From bdfb32de3ca7622ea93afc8d434f657569dad58e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Aug 2022 20:30:58 -0700 Subject: [PATCH] Added some additional Nintendo controller types to ESwitchDeviceInfoControllerType --- src/joystick/hidapi/SDL_hidapi_switch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index 3a09e8c32..fc10cef4f 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -110,6 +110,8 @@ typedef enum { k_eSwitchDeviceInfoControllerType_ProController = 3, k_eSwitchDeviceInfoControllerType_NESLeft = 9, k_eSwitchDeviceInfoControllerType_NESRight = 10, + k_eSwitchDeviceInfoControllerType_SNES = 11, + k_eSwitchDeviceInfoControllerType_SEGA_Genesis = 13, } ESwitchDeviceInfoControllerType; #define k_unSwitchOutputPacketDataLength 49