Skip to content

keyboard_check_released

CryoEagle edited this page Jan 3, 2019 · 4 revisions

keyboard_check_released

Returns if key is released

Syntax:

keyboard_check_released(Keys key)
Argument Description
Keys key The key to being checked if is released

Returns: bool

Description:

This function is checking if you release your keyboard key then it will run the code.

Example:

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

When you use this code you can very clearly see that when you held down key A and then after some time release that key the object will move 20 pixels to the left side.

Back to Keyboard

Clone this wiki locally