From 210ba4cb7f61b9de8c243c2b1301648c856f864f Mon Sep 17 00:00:00 2001 From: Kristian Kraljic Date: Thu, 1 Jun 2017 00:30:00 +0200 Subject: [PATCH] Added linker flag to fix 32-bit Windows issue #13, fix in MouseHook --- README.md | 2 +- appveyor.yml | 2 +- build.xml | 289 +++++++++++----------- pom.xml | 2 +- src/main/native/mouse/windows/MouseHook.c | 2 +- 5 files changed, 149 insertions(+), 148 deletions(-) diff --git a/README.md b/README.md index 2ced9b7..e00a8ef 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ You can include `system-hook` from this GitHub repository by adding this depende lc.kra.system system-hook - 2.5 + 2.6 ``` diff --git a/appveyor.yml b/appveyor.yml index b26903d..58f10a0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 2.5.{build} +version: 2.6.{build} branches: only: diff --git a/build.xml b/build.xml index 6bec44e..e0d8c5f 100644 --- a/build.xml +++ b/build.xml @@ -1,145 +1,146 @@ - - - - - - - - - - - - - Initializing local environment... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + Initializing local environment... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 82df952..6193d50 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 lc.kra.system system-hook - 2.5 + 2.6 Global Keyboard / Mouse Hook for Java applications. https://github.com/kristian/system-hook diff --git a/src/main/native/mouse/windows/MouseHook.c b/src/main/native/mouse/windows/MouseHook.c index a1d7e19..2e1ee0c 100644 --- a/src/main/native/mouse/windows/MouseHook.c +++ b/src/main/native/mouse/windows/MouseHook.c @@ -95,7 +95,7 @@ LRESULT CALLBACK LowLevelMouseProc(int nCode, WPARAM wParam, LPARAM lParam) { break; case WM_MOUSEMOVE: tState = (jint)TS_MOVE; - if(xPos!=xPosOld||yPos!=yPos) + if(xPos!=xPosOld||yPos!=yPosOld) (*env)->CallVoidMethod(env, mouseHookObj, handleMouseMeth, tState, (jint)0, /*(jint)wParam,*/xPosOld=xPos, yPosOld=yPos, (jint)0); break; case WM_MOUSEWHEEL: