Skip to content

keyboard_check_direct

drewmccluskey edited this page Feb 12, 2019 · 2 revisions

keyboard_check_direct

Returns if kea y is held down, even when the window is not focused

Syntax:

keyboard_check_direct(Keys key)
Argument Description
Keys key Returns if key is held down

Returns: bool

Description:

Returns if a key is held down, even when is a window not focused so the window can be minimized and the game will still check for keyboard input.

Example:

if (keyboard_check_direct(Keys.D))
{
    show_message("click");
}

This code will popup message "click" even when the window is minimized.

Back to Keyboard

Clone this wiki locally