Fixed input from the Steam Virtual Gamepad on Mac OS X

This commit is contained in:
Sam Lantinga 2018-08-15 19:53:34 -07:00
parent ea70c5b7a4
commit 4d30496429
12 changed files with 25 additions and 19 deletions

View file

@ -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;