fixed build with SDL_JOYSTICK_RAWINPUT enabled after commit b81969d46f

See: https://github.com/libsdl-org/SDL/pull/4388#issuecomment-852713792
This commit is contained in:
Ozkan Sezer 2021-06-02 14:10:50 +03:00
parent f5b87273e1
commit f498c281e1

View File

@ -891,7 +891,7 @@ RAWINPUT_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, co
/* The Xbox One controller shows up as a hardcoded raw input VID/PID */ /* The Xbox One controller shows up as a hardcoded raw input VID/PID */
if (name && SDL_strcmp(name, "Xbox One Game Controller") == 0 && if (name && SDL_strcmp(name, "Xbox One Game Controller") == 0 &&
device->vendor_id == USB_VENDOR_MICROSOFT && device->vendor_id == USB_VENDOR_MICROSOFT &&
device->product_id == USB_PRODUCT_XBOX_ONE_RAW_INPUT_CONTROLLER) { device->product_id == USB_PRODUCT_XBOX_ONE_XBOXGIP_CONTROLLER) {
return SDL_TRUE; return SDL_TRUE;
} }