Header menu logo fable-electron-docs-api

MouseInputEvent Type

Constructors

Constructor Description

MouseInputEvent(type, x, y, ?button, ?globalX, ?globalY, ?movementX, ?movementY, ?clickCount, ?modifiers)

Full Usage: MouseInputEvent(type, x, y, ?button, ?globalX, ?globalY, ?movementX, ?movementY, ?clickCount, ?modifiers)

Parameters:
    type : 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
type : 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

this.button

Full Usage: this.button

The button pressed, can be left, middle, right.

this.clickCount

Full Usage: this.clickCount

this.globalX

Full Usage: this.globalX

this.globalY

Full Usage: this.globalY

this.modifiers

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.

this.movementX

Full Usage: this.movementX

this.movementY

Full Usage: this.movementY

this.type

Full Usage: this.type

The type of the event, can be mouseDown, mouseUp, mouseEnter, mouseLeave, contextMenu, mouseWheel or mouseMove.

this.x

Full Usage: this.x

this.y

Full Usage: this.y

Type something to start searching.