Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /