angle on joystick R/Z

BlitzMax Forums/BlitzMax Programming/angle on joystick R/Z

warwulf(Posted 2011) [#1]
How do i get the angle ° of the joysticks?


Jesse(Posted 2011) [#2]
you have to figure it out your self
Joyx(port#) gives you the x value between -1.0 and 1.0
joyy(port#) gives you the y value between -1.0 and 1.0
0 being the center.
be careful with the readings. They are not exact and some joystick will report a value greater than or less then zero even if the joystick is in the center position. allow for some error when reading the axis.

Last edited 2011