another attempt to fix the signature error

This commit is contained in:
Shahar Marcus
2022-09-13 20:16:55 +03:00
parent 5bcea64afb
commit 1e45cbea7a
4 changed files with 7 additions and 5 deletions

View File

@@ -803,7 +803,7 @@ class HTML5Window
if (touch == primaryTouch)
{
parent.onMouseDown.dispatch(x, y, 0);
parent.onMouseDown.dispatch(x, y, 0, event.detail);
}
}
else
@@ -839,7 +839,7 @@ class HTML5Window
if (touch == primaryTouch)
{
parent.onMouseUp.dispatch(x, y, 0);
parent.onMouseUp.dispatch(x, y, 0, event.detail);
primaryTouch = null;
}

View File

@@ -780,13 +780,14 @@ class NativeApplication
@:keep /*private*/ class MouseEventInfo
{
public var button:Int;
public var clickCount:Int;
public var movementX:Float;
public var movementY:Float;
public var type:MouseEventType;
public var windowID:Int;
public var x:Float;
public var y:Float;
public var clickCount:Int;
public function new(type:MouseEventType = null, windowID:Int = 0, x:Float = 0, y:Float = 0, button:Int = 0, movementX:Float = 0, movementY:Float = 0, clickCount:Int = 0)
{