ShortCut¶
Inherits: Resource < Reference < Object
A shortcut for binding input.
Description¶
A shortcut for binding input.
Shortcuts are commonly used for interacting with a Control element from a InputEvent.
Properties¶
Methods¶
get_as_text ( ) const |
|
is_shortcut ( InputEvent event ) const |
|
is_valid ( ) const |
Property Descriptions¶
InputEvent shortcut
void set_shortcut ( InputEvent value )
InputEvent get_shortcut ( )
The shortcut's InputEvent.
Generally the InputEvent is a keyboard key, though it can be any InputEvent.
Method Descriptions¶
String get_as_text ( ) const
Returns the shortcut's InputEvent as a String.
bool is_shortcut ( InputEvent event ) const
Returns true
if the shortcut's InputEvent equals event
.
bool is_valid ( ) const
If true
, this shortcut is valid.