MouseInputEvent Type
Constructors
| Constructor |
Description
|
Full Usage:
MouseInputEvent(type, x, y, ?button, ?globalX, ?globalY, ?movementX, ?movementY, ?clickCount, ?modifiers)
Parameters:
Type
-
The type of the event, can be mouseDown, mouseUp, mouseEnter, mouseLeave, contextMenu, mouseWheel or mouseMove.
x : int
-
y : int
-
?button : Button
-
The button pressed, can be left, middle, right.
?globalX : int
-
?globalY : int
-
?movementX : int
-
?movementY : int
-
?clickCount : int
-
?modifiers : Modifiers[]
-
An array of modifiers of the event, can be shift, control, ctrl, alt, meta, command, cmd, iskeypad, isautorepeat, leftbuttondown,
middlebuttondown, rightbuttondown, capslock, numlock, left, right.
Returns: MouseInputEvent
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.button
|
The button pressed, can be left, middle, right. |
Full Usage:
this.clickCount
|
|
Full Usage:
this.globalX
|
|
Full Usage:
this.globalY
|
|
Full Usage:
this.modifiers
|
An array of modifiers of the event, can be shift, control, ctrl, alt, meta, command, cmd, iskeypad, isautorepeat, leftbuttondown, middlebuttondown, rightbuttondown, capslock, numlock, left, right. |
Full Usage:
this.movementX
|
|
Full Usage:
this.movementY
|
|
Full Usage:
this.type
|
The type of the event, can be mouseDown, mouseUp, mouseEnter, mouseLeave, contextMenu, mouseWheel or mouseMove. |
Full Usage:
this.x
|
|
Full Usage:
this.y
|
|
fable-electron-docs-api