mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Centered joystick axis values should be 0
Fixes https://github.com/libsdl-org/sdl2-compat/issues/338
This commit is contained in:
@@ -2824,7 +2824,7 @@ bool SDL_GamepadHasAxis(SDL_Gamepad *gamepad, SDL_GamepadAxis axis)
|
||||
*/
|
||||
Sint16 SDL_GetGamepadAxis(SDL_Gamepad *gamepad, SDL_GamepadAxis axis)
|
||||
{
|
||||
Sint16 result = true;
|
||||
Sint16 result = 0;
|
||||
|
||||
SDL_LockJoysticks();
|
||||
{
|
||||
|
Reference in New Issue
Block a user