Centered joystick axis values should be 0
Fixes https://github.com/libsdl-org/sdl2-compat/issues/338
This commit is contained in:
1 parent
d35bef64e9
commit
f6126e9ea1
1 file changed
+1
-1
@@ -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