func_input_joyhat.rst 425 B

123456789101112131415161718192021222324252627282930313233
  1. .. _func_input_joyhat:
  2. ======
  3. JoyHat
  4. ======
  5. JoyHat -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. JoyHat#( port=0 )
  10. Reports the position of the joystick's HAT controller if supported.
  11. Parameters
  12. ==========
  13. Return Values
  14. =============
  15. -1.0 if the joystick is centered, and values between 0.0, 0.25, 0.5 and 0.75 for the directions Up, Right, Down, Left respectively.
  16. Examples
  17. ========
  18. See Also
  19. ========