Skip to content

keyboard_lastchar

drewmccluskey edited this page Feb 12, 2019 · 4 revisions

keyboard_lastchar

variable with last used keyboard char

Returns: char

Description:

This is a variable holding the last used char key, you can use it for debugging as well as for writing in strings.

Example:

if (keyboard_check_pressed(Keys.Enter))
{
    show_debug_message(keyboard_lastchar.ToString());
}

This code will write the keyboard last char as a debug message when the Enter key is pressed.

Back to Keyboard

Clone this wiki locally