Struct ShortCut

A shortcut for binding input.

struct ShortCut ;

Shortcuts are commonly used for interacting with a Control element from a InputEvent.

Properties

NameTypeDescription
shortcut[get, set] InputEventThe shortcut's InputEvent. Generally the InputEvent is a keyboard key, though it can be any InputEvent.

Methods

NameDescription
getAsText Returns the shortcut's InputEvent as a String.
getShortcut
isShortcut Returns true if the shortcut's InputEvent equals event.
isValid If true, this shortcut is valid.
setShortcut