keyboard_check_pressed - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Gets whether a key has been pressed this step. When the user first presses a key it returns true, if the user has been pressing the key it returns false, but for keyboard_check it will return true.

Parameters

  • key, keyboard constant of which key to check the state of

Return Values

Returns boolean (true or false) whether the key is in the pressed state.

Example Call

Example of using the function.
⚠️ **GitHub.com Fallback** ⚠️