input.triggerKeyEvent
triggerKeyEvent(keycode: number, status: boolean, mouseButton: number) → {}
trigger the specified key (simulated) event
// trigger a key press
me.input.triggerKeyEvent(me.input.KEY.LEFT, true);
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
keycode | number |
(See input.KEY) |
||
status | boolean |
<optional> |
false |
true to trigger a key down event, or false for key up event |
mouseButton | number |
<optional> |
the mouse button to trigger |
Type | Description |
---|