Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
There's no controller that's supported by both XInput and HIDAPI
  • Loading branch information
slouken committed Aug 9, 2018
1 parent ab07ce1 commit 99759ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/joystick/windows/SDL_xinputjoystick.c
Expand Up @@ -259,12 +259,14 @@ AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
return;
}

#if 0 /* There's no controller that's supported by both XInput and HIDAPI */
#ifdef SDL_JOYSTICK_HIDAPI
if (HIDAPI_IsDevicePresent(vendor, product)) {
/* The HIDAPI driver is taking care of this device */
SDL_free(pNewJoystick);
return;
}
#endif
#endif

WINDOWS_AddJoystickDevice(pNewJoystick);
Expand Down

0 comments on commit 99759ba

Please sign in to comment.