Andreas Falkenhahn
2017-05-01 15:20:52 UTC
With my Xbox 360 controller I get the following values from
SDL_GameControllerGetAxis() when the controller is just
idle:
LEFTX: -2263
LEFTY: 2092
RIGHTX: 4681
RIGHTY: 7703
Is that normal? I'd expect to get 0 for those axes when
I don't touch anything on the controller. With the trigger
buttons the behaviour is as expected and SDL returns 0
in case I don't touch them but somehow for the left and
right axes this isn't the case and I get these values from
above...
Tested on Windows with SDL 2.0.5.
SDL_GameControllerGetAxis() when the controller is just
idle:
LEFTX: -2263
LEFTY: 2092
RIGHTX: 4681
RIGHTY: 7703
Is that normal? I'd expect to get 0 for those axes when
I don't touch anything on the controller. With the trigger
buttons the behaviour is as expected and SDL returns 0
in case I don't touch them but somehow for the left and
right axes this isn't the case and I get these values from
above...
Tested on Windows with SDL 2.0.5.
--
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com