User Tools

Site Tools


4rpl:commands:getmappedkeydown

Index

GetMappedKeyDown

GetMappedKeyDown(<-key <-ignorePressesOverUI) ->val

Description

Returns a boolean indicating if the specified Key was pressed during the game frame.
Note: This only return true once until the key is released and pressed again.
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 (GetMappedKeyDown("Custom0" true))
   Trace("Custom0 Pressed")
endif

Index

4rpl/commands/getmappedkeydown.txt · Last modified: 2024/06/10 14:53 by Vertu