Represents a keyboard shortcut, e.g. Ctrl+S
KeyboardShortcut(key::KeyType modifier, char key)
Modifier + key, e.g.
std::string toString() const
Used to display the shortcut, e.g.
KeyboardShortcut(key::KeyType key)
Single key, e.g. jngl::key::F1.
KeyboardShortcut(key::KeyType modifier1, key::KeyType modifier2, char key)
Two modifiers + key, e.g.
bool pressed() const
Returns true if all modifiers and the key of the shortcut was pressed in this step.
KeyboardShortcut()
No shortcut, will never trigger.