SimpleKey

[ Interface ]

interface SimpleKey {
    code: string;
    key: string;
    unmodifiedKey: string;
    location: 'standard' | 'left' | 'right' | 'numpad';
}

Properties

Name

Type

Description

code

string

Special character string for each physical key on the keyboard (does not have to match the corresponding character).

key

string

Value of the button pressed.

unmodifiedKey

string

Value of the unmodified button.

location

'standard', 'left', 'right', 'numpad'

Position of the pressed button.

SimpleKey 1:

Available from 1.8