mirror of https://github.com/libsdl-org/SDL.git
Centered joystick axis values should be 0
Fixes https://github.com/libsdl-org/sdl2-compat/issues/338
This commit is contained in:
parent
d35bef64e9
commit
f6126e9ea1
|
|
@ -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();
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue