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_released

drewmccluskey edited this page Feb 12, 2019 · 4 revisions

keyboard_check_released

Returns if a keyboard key is being released

Syntax:

keyboard_check_released(Keys key)
Argument Description
Keys key The keyboard button being checked if released

Returns: bool

Description:

This function will check if a specified key is being currently released and will run a function if so. This checks specifically the initial release, not the steps after while not pressing down the key.

Example:

if (keyboard_check_released(Keys.A))
{
 Position.X -= 20;
}

The above code checks if the A key is released and if so moves the object 20 pixels to the left.

Back to Keyboard

Clone this wiki locally

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