From c5f12b135d04d321e8ef65a91f2a5501bb9cd9d9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 1 Nov 2024 09:02:55 -0700 Subject: [PATCH] Fixed the D-pad on wireless Xbox 360 controllers --- src/joystick/hidapi/SDL_hidapi_xbox360w.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xbox360w.c b/src/joystick/hidapi/SDL_hidapi_xbox360w.c index 61b8c75a67..b1114f030d 100644 --- a/src/joystick/hidapi/SDL_hidapi_xbox360w.c +++ b/src/joystick/hidapi/SDL_hidapi_xbox360w.c @@ -175,8 +175,9 @@ static bool HIDAPI_DriverXbox360W_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Jo SDL_PlayerLEDHintChanged, ctx); // Initialize the joystick capabilities - joystick->nbuttons = 15; + joystick->nbuttons = 11; joystick->naxes = SDL_GAMEPAD_AXIS_COUNT; + joystick->nhats = 1; return true; }