The SDL forums have moved to
This is just a read-only archive of the previous forums, to keep old links working.

SDL Forum Index
Simple Directmedia Layer Forums
SDL_2 Joystick axis normalization issue

Joined: 21 Oct 2016
Posts: 6
I am trying to normalize the x and y axis and the first analog stick and I am getting crazy results.

Is there something I am missing, I assume I am suppose to to get 0.707, 0.707 for a 45 degree angle.

I am getting values with an exponential after it.

Joypad is Xbox 360