From 5f00147e61017b0cdae73d9c5752e0cf136b06bc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 3 Jun 2023 11:35:27 -0700 Subject: [PATCH] Revert "Fixed detection of the Steam Virtual Gamepad on macOS" This reverts commit 5fcd70578bdde3eaaa51aa4ab6c24ed08bd49db3. Steam has been updated to send a version of 1 to avoid conflicts with controllers that report a version of 0. --- src/joystick/hidapi/SDL_hidapi_xbox360.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xbox360.c b/src/joystick/hidapi/SDL_hidapi_xbox360.c index 964f488277..18e41572c1 100644 --- a/src/joystick/hidapi/SDL_hidapi_xbox360.c +++ b/src/joystick/hidapi/SDL_hidapi_xbox360.c @@ -81,8 +81,7 @@ static SDL_bool HIDAPI_DriverXbox360_IsSupportedDevice(SDL_HIDAPI_Device *device return SDL_FALSE; } #if defined(__MACOS__) || defined(__WIN32__) - if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e && - (version == 0 || version == 1)) { + if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e && version == 1) { /* This is the Steam Virtual Gamepad, which isn't supported by this driver */ return SDL_FALSE; }