Home
Products
Community
Manuals
Contact
Login or Signup

BlitzMax Docs -> 2D - Category -> Input -> GetChar

GetChar()

Returns:

The character code of the next character.

Description:

Get next character

As the user hits keys on the keyboard, BlitzMax records the character codes of thesekeystrokes into an internal 'character queue'.

GetChar removes the next character code from this queue and returns it the application.

If the character queue is empty, 0 is returned.


Comments

Goober(Posted 1+ years ago)
Since GetChar() returns an Int value, what function is used to convert that into its String equivalent?


Ked(Posted 1+ years ago)
Local a:Int=GetChar(), char:String
If a char=Chr(a)

Print char



BlitzMax Manual Forum

Blitz3D Equivalent Command