Fixed detecting the Steam Virtual Gamepad on macOS
(cherry picked from commit bb33eb409e)
This commit is contained in:
1 parent
0f695adb03
commit
7eebc2ad4d
1 file changed
+1
-1
@@ -2137,7 +2137,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
|
|||||||
#if defined(__LINUX__)
|
#if defined(__LINUX__)
|
||||||
bSteamVirtualGamepad = (vendor == USB_VENDOR_VALVE && product == USB_PRODUCT_STEAM_VIRTUAL_GAMEPAD);
|
bSteamVirtualGamepad = (vendor == USB_VENDOR_VALVE && product == USB_PRODUCT_STEAM_VIRTUAL_GAMEPAD);
|
||||||
#elif defined(__MACOSX__)
|
#elif defined(__MACOSX__)
|
||||||
bSteamVirtualGamepad = (vendor == USB_VENDOR_MICROSOFT && product == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 1);
|
bSteamVirtualGamepad = (vendor == USB_VENDOR_MICROSOFT && product == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 0);
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__)
|
||||||
/* We can't tell on Windows, but Steam will block others in input hooks */
|
/* We can't tell on Windows, but Steam will block others in input hooks */
|
||||||
bSteamVirtualGamepad = SDL_TRUE;
|
bSteamVirtualGamepad = SDL_TRUE;
|
||||||
|
|||||||
Reference in new issue
Block a user