User Tools

Site Tools


4rpl:commands:getmappedkey

Index

GetMappedKey

GetMappedKey(<-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 that specifies the key mapping constant, as defined in Settings/Controls. To see the mappings, bring up Settings/Controls and point at one of the key mapping buttons. The Mapping name will appear on the left under the name. Note that the mapping name is case sensitive. The second argument indicates whether to ignore the events when the cursor is over the UI.

Examples

if (GetMappedKey("Custom0" true))
   Trace("Custom0 pressed")
endif

Index

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