Constructor

new()

Variables

@:value(-1.0)lastX:Float = -1.0

@:value(-1.0)lastY:Float = -1.0

@:value(false)read onlymoved:Bool = false

@:value(0.0)read onlymovementX:Float = 0.0

@:value(0.0)read onlymovementY:Float = 0.0

@:value(0)read onlywheelDelta:Int = 0

@:value(0.0)read onlyx:Float = 0.0

@:value(0.0)read onlyy:Float = 0.0

Methods

@:value({ button : 0 })down(button:Int = 0):Null<Bool>

Check if mouse's button was down.

Parameters:

button

Button of mouse, defaults to left.

@:value({ button : 0 })released(button:Int = 0):Null<Bool>

Check if mouse's button was released.

Parameters:

button

Button of mouse, defaults to left.

@:value({ button : 0 })started(button:Int = 0):Null<Bool>

Check if mouse's button was pressed.

Parameters:

button

Button of mouse, defaults to left.