From 9e16dd60e43ebb24261a7201722021983c45f4b8 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Sat, 20 Jan 2024 00:39:47 +0900 Subject: [PATCH] mayflash adapter PS4 support --- src/joystick/hidapi/SDL_hidapijoystick.c | 2 ++ src/joystick/usb_ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index 1aa07d85969354..81453eec469a13 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -169,6 +169,8 @@ SDL_bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product) return SDL_TRUE; case USB_VENDOR_MADCATZ: return SDL_TRUE; + case USB_VENDOR_MAYFLASH: + return SDL_TRUE; case USB_VENDOR_NACON: case USB_VENDOR_NACON_ALT: return SDL_TRUE; diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h index 63917c8f291636..1e218a4b53b11f 100644 --- a/src/joystick/usb_ids.h +++ b/src/joystick/usb_ids.h @@ -36,6 +36,7 @@ #define USB_VENDOR_HYPERKIN 0x2e24 #define USB_VENDOR_LOGITECH 0x046d #define USB_VENDOR_MADCATZ 0x0738 +#define USB_VENDOR_MAYFLASH 0x33df #define USB_VENDOR_MICROSOFT 0x045e #define USB_VENDOR_NACON 0x146b #define USB_VENDOR_NACON_ALT 0x3285