-
-
Notifications
You must be signed in to change notification settings - Fork 18
keyboard_check_released
drewmccluskey edited this page Feb 12, 2019
·
4 revisions
Returns if a keyboard key is being released
keyboard_check_released(Keys key)
Argument | Description |
---|---|
Keys key |
The keyboard button being checked if released |
Returns: bool
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.
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