ShortCut

Inherits: Resource < Reference < Object

Category: Core

Brief Description

A shortcut for binding input.

Properties

InputEventshortcut

Methods

Stringget_as_text ( ) const
boolis_shortcut ( InputEvent event ) const
boolis_valid ( ) const

Description

A shortcut for binding input.

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

Property Descriptions

Setterset_shortcut(value)
Getterget_shortcut()

The shortcut’s InputEvent.

Generally the InputEvent is a keyboard key, though it can be any InputEvent.

Method Descriptions

Returns the shortcut’s InputEvent as a String.


Returns true if the shortcut’s InputEvent equals event.


  • bool is_valid ( ) const

If true, this shortcut is valid.