new()
@: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
@:value({ button : 0 })down(button:Int = 0):Null<Bool>
Check if mouse's button was down.
Parameters:
button
Button of mouse, defaults to left.
endFrame():Void
@:value({ button : 0 })released(button:Int = 0):Null<Bool>
Check if mouse's button was released.
@:value({ button : 0 })started(button:Int = 0):Null<Bool>
Check if mouse's button was pressed.