Skip to content

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