func_input_joyu.rst 544 B

1234567891011121314151617181920212223242526272829303132333435
  1. .. _func_input_joyu:
  2. ====
  3. JoyU
  4. ====
  5. JoyU -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. JoyU#( port=0 )
  10. Reports the position of the joystick's U axis if supported.
  11. The U value of a joystick usually corresponds to a joystick's 'slider' or 'throttle' feature, although this may vary depending on the joystick, and will not be available with all joysticks.
  12. Parameters
  13. ==========
  14. Return Values
  15. =============
  16. Zero if the joystick is centered, -1.0 if Up, 1.0 if Down or a value inbetween.
  17. Examples
  18. ========
  19. See Also
  20. ========