User Tools

Site Tools


4rpl:commands:getkey

Index

GetKey

GetKey(<-key <-ignorePressesOverUI) ->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 the cursor is over the UI. The list of possible values for the first argument can be derived from the enumeration for KeyCode.

Examples

if (GetKey("W" true))
   Trace("W pressed")
endif

Index

4rpl/commands/getkey.txt · Last modified: 2024/02/16 13:31 by digitalizedMind