2019-07-26 23:11:50 +00:00
|
|
|
# InputEvent Object
|
|
|
|
|
2022-09-27 19:47:46 +00:00
|
|
|
* `type` string - Can be `undefined`, `mouseDown`, `mouseUp`, `mouseMove`,
|
|
|
|
`mouseEnter`, `mouseLeave`, `contextMenu`, `mouseWheel`, `rawKeyDown`,
|
|
|
|
`keyDown`, `keyUp`, `char`, `gestureScrollBegin`, `gestureScrollEnd`,
|
|
|
|
`gestureScrollUpdate`, `gestureFlingStart`, `gestureFlingCancel`,
|
|
|
|
`gesturePinchBegin`, `gesturePinchEnd`, `gesturePinchUpdate`,
|
|
|
|
`gestureTapDown`, `gestureShowPress`, `gestureTap`, `gestureTapCancel`,
|
|
|
|
`gestureShortPress`, `gestureLongPress`, `gestureLongTap`,
|
|
|
|
`gestureTwoFingerTap`, `gestureTapUnconfirmed`, `gestureDoubleTap`,
|
|
|
|
`touchStart`, `touchMove`, `touchEnd`, `touchCancel`, `touchScrollStarted`,
|
|
|
|
`pointerDown`, `pointerUp`, `pointerMove`, `pointerRawUpdate`,
|
|
|
|
`pointerCancel` or `pointerCausedUaAction`.
|
2021-11-16 04:13:18 +00:00
|
|
|
* `modifiers` string[] (optional) - An array of modifiers of the event, can
|
2019-08-30 00:45:41 +00:00
|
|
|
be `shift`, `control`, `ctrl`, `alt`, `meta`, `command`, `cmd`, `isKeypad`,
|
|
|
|
`isAutoRepeat`, `leftButtonDown`, `middleButtonDown`, `rightButtonDown`,
|
|
|
|
`capsLock`, `numLock`, `left`, `right`.
|