func_input_waitkey.rst 457 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .. _func_input_waitkey:
  2. =======
  3. WaitKey
  4. =======
  5. WaitKey -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. WaitKey()
  10. Wait for a key press
  11. #WaitKey suspends program execution until a key has been hit. The keycode of this
  12. key is then returned to the application.
  13. See the #{key codes} module for a list of valid keycodes.
  14. Parameters
  15. ==========
  16. Return Values
  17. =============
  18. The keycode of the pressed key
  19. Examples
  20. ========
  21. See Also
  22. ========