From 5bcea64afb330749f738d46f0d86a80ee0b404c6 Mon Sep 17 00:00:00 2001 From: Shahar Marcus <88977041+ShaharMS@users.noreply.github.com> Date: Tue, 13 Sep 2022 17:44:35 +0300 Subject: [PATCH] quick fixes, should fix signature error when compiling, i get this error: FATAL ERROR : Invalid signature for function lime@hl_mouse_event_manager_register : PP_vOiiddiidd__v required but PP_vOiddiidd__v found in hdll This should fix it --- project/include/ui/MouseEvent.h | 2 +- src/lime/_internal/backend/html5/HTML5Window.hx | 4 ++-- src/lime/_internal/backend/native/NativeApplication.hx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project/include/ui/MouseEvent.h b/project/include/ui/MouseEvent.h index c3f86aa9a..8c8cbea4e 100644 --- a/project/include/ui/MouseEvent.h +++ b/project/include/ui/MouseEvent.h @@ -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; diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index a5a636025..ec229216f 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -613,7 +613,7 @@ class HTML5Window Browser.window.addEventListener("mouseup", handleMouseEvent); } - parent.onMouseDown.dispatch(x, y, event.button); + parent.onMouseDown.dispatch(x, y, event.button, event.detail); if (parent.onMouseDown.canceled && event.cancelable) { @@ -650,7 +650,7 @@ class HTML5Window event.stopPropagation(); } - parent.onMouseUp.dispatch(x, y, event.button); + parent.onMouseUp.dispatch(x, y, event.button, event.detail); if (parent.onMouseUp.canceled && event.cancelable) { diff --git a/src/lime/_internal/backend/native/NativeApplication.hx b/src/lime/_internal/backend/native/NativeApplication.hx index 55bbc602a..7516133a1 100644 --- a/src/lime/_internal/backend/native/NativeApplication.hx +++ b/src/lime/_internal/backend/native/NativeApplication.hx @@ -802,7 +802,7 @@ class NativeApplication public function clone():MouseEventInfo { - return new MouseEventInfo(type, windowID, x, y, button, movementX, movementY); + return new MouseEventInfo(type, windowID, x, y, button, movementX, movementY, clickCount); } }