# SDL: Fixed detecting the Steam Virtual Gamepad on macOS

**URL:** <https://discourse.libsdl.org/t/sdl-fixed-detecting-the-steam-virtual-gamepad-on-macos/54805>\
**Category:** SDL Commits\
**Created:** [October 7, 2024, 11:21pm UTC](https://discourse.libsdl.org/t/sdl-fixed-detecting-the-steam-virtual-gamepad-on-macos/54805 "2024-10-07T23:21:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 7, 2024, 11:21pm UTC](https://discourse.libsdl.org/t/sdl-fixed-detecting-the-steam-virtual-gamepad-on-macos/54805/1 "2024-10-07T23:21:56Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/bb33eb409ed6f05461de34fcddd9fa496af89e62>

```diff
From bb33eb409ed6f05461de34fcddd9fa496af89e62 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 7 Oct 2024 16:21:44 -0700
Subject: [PATCH] Fixed detecting the Steam Virtual Gamepad on macOS

---
 src/joystick/SDL_gamecontroller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index 410c985d46259..2cea5eb9dc850 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -2137,7 +2137,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
 #if defined( __LINUX__ )
         bSteamVirtualGamepad = (vendor == USB_VENDOR_VALVE && product == USB_PRODUCT_STEAM_VIRTUAL_GAMEPAD);
 #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__ )
         /* We can't tell on Windows, but Steam will block others in input hooks */
         bSteamVirtualGamepad = SDL_TRUE;

```
