Fixed Xbox 360 wireless controller being picked up by WGI when it's being managed by RAWINPUT

This commit is contained in:
Sam Lantinga
2020-11-27 10:44:47 -08:00
parent 37c9e4afa3
commit 8a449de20d
5 changed files with 13 additions and 6 deletions

View File

@@ -674,7 +674,7 @@ EnumJoysticksCallback(const DIDEVICEINSTANCE * pdidInstance, VOID * pContext)
#endif
#ifdef SDL_JOYSTICK_RAWINPUT
if (RAWINPUT_IsDevicePresent(vendor, product, 0)) {
if (RAWINPUT_IsDevicePresent(vendor, product, 0, pNewJoystick->joystickname)) {
/* The RAWINPUT driver is taking care of this device */
SDL_free(pNewJoystick);
return DIENUM_CONTINUE;