Skip to content

keyboard_key

CryoEagle edited this page Jan 4, 2019 · 2 revisions

keyboard_key

variable with currently used key

Returns: string

Description:

variable with currently used key, when you use keyboard_check_pressed(); and in that that function show_message(keyboard_key); it will popup message with currently used key.

Example:

if (mouse_check_button_pressed(MouseButtons.Left))
{
    show_message(keyboard_key);
}

This code will show used key in moment when you held down key and press mouse left button, so first use key.

Back to Keyboard

Clone this wiki locally