Input.KeyboardCommandEvent

Description: Defines a KeyboardCommandEvent object that represents when a command has been attempted.

Constructors

KeyboardCommandEvent (keyEvent)
Creates a new instance of the KeyboardCommandEvent object.

keyEvent: KeyboardEvent
The raw key event from the DOM.

Fields

Key: string
The key that was hit.

Modifiers: Input.Assets.KeyboardModifiers
The modifier status.

Methods

Matches()
Determines if the KeyboardCommand matches the KeyboardCommandEvent

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.