@@ -145,6 +145,7 @@ static bool HIDAPI_Driver8BitDo_IsSupportedDevice(SDL_HIDAPI_Device *device, con
145
145
case USB_PRODUCT_8BITDO_SN30_PRO_BT :
146
146
case USB_PRODUCT_8BITDO_PRO_2 :
147
147
case USB_PRODUCT_8BITDO_PRO_2_BT :
148
+ case USB_PRODUCT_8BITDO_PRO_3 :
148
149
case USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS :
149
150
return true;
150
151
default :
@@ -219,6 +220,8 @@ static bool HIDAPI_Driver8BitDo_InitDevice(SDL_HIDAPI_Device *device)
219
220
HIDAPI_SetDeviceName (device , "8BitDo SN30 Pro" );
220
221
} else if (device -> product_id == USB_PRODUCT_8BITDO_PRO_2 || device -> product_id == USB_PRODUCT_8BITDO_PRO_2_BT ) {
221
222
HIDAPI_SetDeviceName (device , "8BitDo Pro 2" );
223
+ } else if (device -> product_id == USB_PRODUCT_8BITDO_PRO_3 ) {
224
+ HIDAPI_SetDeviceName (device , "8BitDo Pro 3" );
222
225
}
223
226
224
227
return HIDAPI_JoystickConnected (device , NULL );
@@ -253,6 +256,7 @@ static Uint64 HIDAPI_Driver8BitDo_GetIMURateForProductID(SDL_HIDAPI_Device *devi
253
256
// This firmware appears to update at 100 Hz over USB
254
257
return 100 ;
255
258
}
259
+ case USB_PRODUCT_8BITDO_PRO_3 :
256
260
case USB_PRODUCT_8BITDO_PRO_2 :
257
261
case USB_PRODUCT_8BITDO_PRO_2_BT : // Note, labeled as "BT" but appears this way when wired.
258
262
if (device -> is_bluetooth ) {
@@ -287,6 +291,7 @@ static bool HIDAPI_Driver8BitDo_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joys
287
291
// Initialize the joystick capabilities
288
292
if (device -> product_id == USB_PRODUCT_8BITDO_PRO_2 ||
289
293
device -> product_id == USB_PRODUCT_8BITDO_PRO_2_BT ||
294
+ device -> product_id == USB_PRODUCT_8BITDO_PRO_3 ||
290
295
device -> product_id == USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS ) {
291
296
// This controller has additional buttons
292
297
joystick -> nbuttons = SDL_GAMEPAD_NUM_8BITDO_BUTTONS ;
0 commit comments