Constructor

new ()

Methods

Inherited Variables

Inherited Methods

Defined by Mouse

notify (downListener:Int ‑> Int ‑> Int ‑> Void, upListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Int ‑> Void, wheelListener:Int ‑> Void, ?leaveListener:Void ‑> Void):Void

Creates event handlers from passed functions.

Parameters:

downListener

function with x:Int,y:Int,button:Int arguments, fired when a mouse is pressed down. button:Int is 0 for left button, 1 for right and 2 for middle.

upListener

function with x:Int,y:Int,button:Int arguments, fired when a mouse is released.

moveListener

function with x:Int,y:Int,moveX:Int,moveY:Int arguments, fired when a mouse is moved. moveX/moveY is the difference between the current coordinates and the last position of the mouse.

wheelListener

function with delta:Int argument, fired when the wheel rotates. It can have a value of 1 or -1 depending on the rotation.

leaveListener

(optional) function without` arguments, when fired mouse leave canvas.

notifyWindowed (windowId:Int, downListener:Int ‑> Int ‑> Int ‑> Void, upListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Int ‑> Void, wheelListener:Int ‑> Void, ?leaveListener:Void ‑> Void):Void

Creates event handlers from passed functions like notify function, but only for window with windowId:Int id argument. The windows are not supported by all the targets.

remove (downListener:Int ‑> Int ‑> Int ‑> Void, upListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Int ‑> Void, wheelListener:Int ‑> Void, ?leaveListener:Void ‑> Void):Void

Removes event handlers from the passed functions that were passed to notify function.

removeWindowed (windowId:Int, downListener:Int ‑> Int ‑> Int ‑> Void, upListener:Int ‑> Int ‑> Int ‑> Void, moveListener:Int ‑> Int ‑> Int ‑> Int ‑> Void, wheelListener:Int ‑> Void, ?leaveListener:Void ‑> Void):Void

Removes event handlers for windowId:Int from the passed functions that were passed to notifyWindowed function.

Defined by Controller

_id ():Int