User Tools

Site Tools


4rpl:commands:getkey

This is an old revision of the document!


GETKEY

GetKey(<-key true) ->val

Description

Returns a boolean indicating if the specified key is held down. Note: This returns true for as long as the key is pressed. The first argument is a string and specifies which key to check. The second argument indicates whether to ignore the events when over the UI.

The full list of recognized keys is here

Examples

if (GetKey("W" true))
   Trace("W pressed")
endif
4rpl/commands/getkey.1564150105.txt.gz · Last modified: 2025/02/14 14:56 (external edit)