Fixed input from the Steam Virtual Gamepad on Mac OS X
This commit is contained in:
parent
ea70c5b7a4
commit
4d30496429
12 changed files with 25 additions and 19 deletions
|
@ -261,7 +261,7 @@ AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
|
|||
|
||||
#if 0 /* There's no controller that's supported by both XInput and HIDAPI */
|
||||
#ifdef SDL_JOYSTICK_HIDAPI
|
||||
if (HIDAPI_IsDevicePresent(vendor, product)) {
|
||||
if (HIDAPI_IsDevicePresent(vendor, product, version)) {
|
||||
/* The HIDAPI driver is taking care of this device */
|
||||
SDL_free(pNewJoystick);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue