UI / KeyEvent
KeyEvent Class
Key events
Table of contents
Methods
getKey(): string other |
---|
Get press keys |
getUserIndex(): number other |
Get event trigger Player index |
isAltDown(): boolean other |
Is the alt key pressed |
isCommandDown(): boolean other |
Whether the command key is press |
isControlDown(): boolean other |
Is the control key pressed |
isShiftDown(): boolean other |
Is the shift key pressed |
toInputEvent(): InputEvent other |
Convert to InputEvent* |
Default Construction
Methods
getKey
• getKey(): string
other
Get press keys
Returns
string | Returns the name of the press key |
---|
getUserIndex
• getUserIndex(): number
other
Get event trigger Player index
Returns
number | Return event triggers player index |
---|
isAltDown
• isAltDown(): boolean
other
Is the alt key pressed
Returns
boolean | Return to whether the Alt key is press |
---|
isCommandDown
• isCommandDown(): boolean
other
Whether the command key is press
Returns
boolean | Return whether the Command key is pressed or not |
---|
isControlDown
• isControlDown(): boolean
other
Is the control key pressed
Returns
boolean | Is the Control key pressed to return |
---|
isShiftDown
• isShiftDown(): boolean
other
Is the shift key pressed
Returns
boolean | Return whether the shift key is press |
---|
toInputEvent
• toInputEvent(): InputEvent
other
Convert to InputEvent*
Returns
InputEvent | Return InputEvent after conversion |
---|