another attempt to fix the signature error
This commit is contained in:
@@ -24,13 +24,13 @@ namespace lime {
|
||||
|
||||
hl_type* t;
|
||||
int button;
|
||||
int clickCount;
|
||||
double movementX;
|
||||
double movementY;
|
||||
MouseEventType type;
|
||||
int windowID;
|
||||
double x;
|
||||
double y;
|
||||
int clickCount;
|
||||
|
||||
static ValuePointer* callback;
|
||||
static ValuePointer* eventObject;
|
||||
|
||||
@@ -77,13 +77,14 @@ namespace lime {
|
||||
MouseEvent* eventObject = (MouseEvent*)MouseEvent::eventObject->Get ();
|
||||
|
||||
eventObject->button = event->button;
|
||||
eventObject->clickCount = event->clickCount;
|
||||
eventObject->movementX = event->movementX;
|
||||
eventObject->movementY = event->movementY;
|
||||
eventObject->type = event->type;
|
||||
eventObject->windowID = event->windowID;
|
||||
eventObject->x = event->x;
|
||||
eventObject->y = event->y;
|
||||
eventObject->clickCount = event->clickCount;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user