M32:ifholdkey: Difference between revisions
Jump to navigation
Jump to search
Doom64hunter (talk | contribs) Created page with "ifholdkey <KEY_SC> This command will branch if the key specified by the scancode has been activated, or take the 'else' branch otherwise. Unlike ifhitkey, ifholdkey does not affect the status of the key after the block is exited. See also: ifhitkey '''Usage:''' ifholdkey KEY_F { // do stuff if key active } else { // do stuff if key inactive } // key status is un..." |
(No difference)
|
Revision as of 11:30, 8 May 2022
ifholdkey <KEY_SC>
This command will branch if the key specified by the scancode has been activated, or take the 'else' branch otherwise.
Unlike ifhitkey, ifholdkey does not affect the status of the key after the block is exited.
See also: ifhitkey
Usage:
ifholdkey KEY_F { // do stuff if key active } else { // do stuff if key inactive } // key status is unchanged