Class Shortcut
A shortcut for binding input.
- Inheritance
-
Shortcut
Remarks
Shortcuts are commonly used for interacting with a Control element from an InputEvent (also known as hotkeys).
One shortcut can contain multiple InputEvents, allowing the possibility of triggering one action with multiple different inputs.
Properties
events
The shortcut's InputEvent array.
Generally the InputEvent used is an InputEventKey, though it can be any InputEvent, including an InputEventAction.
var events : Array = []
Property Value
Remarks
Methods
get_as_text
Qualifiers: const
Returns the shortcut's first valid InputEvent as a String.
String get_as_text
has_valid_event
Qualifiers: const
Returns whether events contains an InputEvent which is valid.
bool has_valid_event
matches_event(InputEvent)
Qualifiers: const
Returns whether any InputEvent in events equals event
. This uses InputEvent.is_match to compare events.
bool matches_event(InputEvent event)
Parameters
event
InputEvent