class MouseImpl
package kha.input
extends Mouse › Controller
@:directlyUsed@:build(kha.netsync.ControllerBuilder.build())@:autoBuild(kha.netsync.ControllerBuilder.build())Constructor
Methods
Inherited Variables
Defined by Controller
Inherited Methods
Defined by Mouse
@:value({ leaveListener : null })notify(downListener:(button:Int, x:Int, y:Int) ‑> Void, upListener:(button:Int, x:Int, y:Int) ‑> Void, moveListener:(x:Int, y:Int, moveX:Int, moveY:Int) ‑> Void, wheelListener:(delta:Int) ‑> Void, ?leaveListener:() ‑> Void):Void
Creates event handlers from passed functions.
Parameters:
downListener | function with |
---|---|
upListener | function with |
moveListener | function with |
wheelListener | function with |
leaveListener | (optional) function without` arguments, when fired mouse leave canvas. |
@:value({ leaveListener : null })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
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.
@:value({ leaveListener : null })remove(downListener:(button:Int, x:Int, y:Int) ‑> Void, upListener:(button:Int, x:Int, y:Int) ‑> Void, moveListener:(x:Int, y:Int, moveX:Int, moveY:Int) ‑> Void, wheelListener:(delta:Int) ‑> Void, ?leaveListener:() ‑> Void):Void
Removes event handlers from the passed functions that were passed to notify
function.
@:value({ leaveListener : null })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
Removes event handlers for windowId:Int
from the passed functions that were passed to notifyWindowed
function.