mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed the D-pad on wireless Xbox 360 controllers
This commit is contained in:
@@ -175,8 +175,9 @@ static bool HIDAPI_DriverXbox360W_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Jo
|
|||||||
SDL_PlayerLEDHintChanged, ctx);
|
SDL_PlayerLEDHintChanged, ctx);
|
||||||
|
|
||||||
// Initialize the joystick capabilities
|
// Initialize the joystick capabilities
|
||||||
joystick->nbuttons = 15;
|
joystick->nbuttons = 11;
|
||||||
joystick->naxes = SDL_GAMEPAD_AXIS_COUNT;
|
joystick->naxes = SDL_GAMEPAD_AXIS_COUNT;
|
||||||
|
joystick->nhats = 1;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user