12bbbef688
The `event` type and keyword is reserved by the typescript generator, in the future we should throw an error from the generator if someone uses a reserved interface like that. This also splits and documents the InputEvent type way better so that TS users get strong type safety. Fixes electron/typescript-definitions#36
12 lines
470 B
Markdown
12 lines
470 B
Markdown
# MouseInputEvent Object extends `InputEvent`
|
|
|
|
* `type` String - The type of the event, can be `mouseDown`,
|
|
`mouseUp`, `mouseEnter`, `mouseLeave`, `contextMenu`, `mouseWheel` or `mouseMove`.
|
|
* `x` Integer
|
|
* `y` Integer
|
|
* `button` String (optional) - The button pressed, can be `left`, `middle`, `right`.
|
|
* `globalX` Integer (optional)
|
|
* `globalY` Integer (optional)
|
|
* `movementX` Integer (optional)
|
|
* `movementY` Integer (optional)
|
|
* `clickCount` Integer (optional)
|