func_input_getchar.rst 555 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. _func_input_getchar:
  2. =======
  3. GetChar
  4. =======
  5. GetChar -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. GetChar()
  10. Get next character
  11. As the user hits keys on the keyboard, BlitzMax records the character codes of these
  12. keystrokes into an internal 'character queue'.
  13. #GetChar removes the next character code from this queue and returns it the application.
  14. If the character queue is empty, 0 is returned.
  15. Parameters
  16. ==========
  17. Return Values
  18. =============
  19. The character code of the next character.
  20. Examples
  21. ========
  22. See Also
  23. ========