angle on joystick R/Z
BlitzMax Forums/BlitzMax Programming/angle on joystick R/Z
| ||
How do i get the angle ° of the joysticks? |
| ||
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 |