The SDL forums have moved to
discourse.libsdl.org
.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
SDL_2 Joystick axis normalization issue
smilesprower
Joined: 21 Oct 2016
Posts: 6
Posted: Tue Jan 31, 2017 9:52 pm
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
Thanks
Powered by
phpBB
© phpBB Group
Design by
Vjacheslav Trushkin
for
phpBBStyles.com
.
Content © SDL