{"action":"created","issue":{"url":"https://api.github.com/repos/kwhat/jnativehook/issues/76","labels_url":"https://api.github.com/repos/kwhat/jnativehook/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/kwhat/jnativehook/issues/76/comments","events_url":"https://api.github.com/repos/kwhat/jnativehook/issues/76/events","html_url":"https://github.com/kwhat/jnativehook/issues/76","id":115307927,"number":76,"title":"Mouse wheel event, coordinate issue on Windows","user":{"login":"Bluezen","id":659895,"avatar_url":"https://avatars.githubusercontent.com/u/659895?v=3","gravatar_id":"","url":"https://api.github.com/users/Bluezen","html_url":"https://github.com/Bluezen","followers_url":"https://api.github.com/users/Bluezen/followers","following_url":"https://api.github.com/users/Bluezen/following{/other_user}","gists_url":"https://api.github.com/users/Bluezen/gists{/gist_id}","starred_url":"https://api.github.com/users/Bluezen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bluezen/subscriptions","organizations_url":"https://api.github.com/users/Bluezen/orgs","repos_url":"https://api.github.com/users/Bluezen/repos","events_url":"https://api.github.com/users/Bluezen/events{/privacy}","received_events_url":"https://api.github.com/users/Bluezen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kwhat/jnativehook/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"kwhat","id":676164,"avatar_url":"https://avatars.githubusercontent.com/u/676164?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhat","html_url":"https://github.com/kwhat","followers_url":"https://api.github.com/users/kwhat/followers","following_url":"https://api.github.com/users/kwhat/following{/other_user}","gists_url":"https://api.github.com/users/kwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhat/subscriptions","organizations_url":"https://api.github.com/users/kwhat/orgs","repos_url":"https://api.github.com/users/kwhat/repos","events_url":"https://api.github.com/users/kwhat/events{/privacy}","received_events_url":"https://api.github.com/users/kwhat/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kwhat/jnativehook/milestones/6","html_url":"https://github.com/kwhat/jnativehook/milestones/2.0.4","labels_url":"https://api.github.com/repos/kwhat/jnativehook/milestones/6/labels","id":1396132,"number":6,"title":"2.0.4","description":null,"creator":{"login":"kwhat","id":676164,"avatar_url":"https://avatars.githubusercontent.com/u/676164?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhat","html_url":"https://github.com/kwhat","followers_url":"https://api.github.com/users/kwhat/followers","following_url":"https://api.github.com/users/kwhat/following{/other_user}","gists_url":"https://api.github.com/users/kwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhat/subscriptions","organizations_url":"https://api.github.com/users/kwhat/orgs","repos_url":"https://api.github.com/users/kwhat/repos","events_url":"https://api.github.com/users/kwhat/events{/privacy}","received_events_url":"https://api.github.com/users/kwhat/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-11-05T18:10:51Z","updated_at":"2015-11-06T04:53:35Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-11-05T15:27:55Z","updated_at":"2015-11-06T09:10:57Z","closed_at":"2015-11-06T04:53:35Z","body":"I encountered an issue with posting a mouse wheel event on Windows; the mouse cursor jumps at the top of the screen and my coordinates seem to be ignored. \r\n\r\nCould it be that libuiohook is not looking at the right place for the mouse coordinate of a wheel event? \r\n```c\r\ncase EVENT_MOUSE_WHEEL:\r\n        /* ... */\r\n\tevents[events_size].mi.dx = event->data.mouse.x * (MAX_WINDOWS_COORD_VALUE / screen_width) + 1;\r\n\tevents[events_size].mi.dy = event->data.mouse.y * (MAX_WINDOWS_COORD_VALUE / screen_height) + 1;\r\n```\r\n[ libuiohook/src/windows/post_event.c L.244](https://github.com/kwhat/libuiohook/blob/master/src/windows/post_event.c#L244)\r\n\r\nor that jnativehook should set the coordinate on the mouse data structure instead of wheel?\r\n```c\r\ncase org_jnativehook_mouse_NativeMouseEvent_NATIVE_MOUSE_WHEEL:\r\n\t\t\t/* ... */\r\n\tvirtualEvent.data.wheel.x = (*env)->CallIntMethod(env, NativeInputEvent_obj, org_jnativehook_mouse_NativeMouseWheelEvent->parent->getX);\r\n\tvirtualEvent.data.wheel.y = (*env)->CallIntMethod(env, NativeInputEvent_obj, org_jnativehook_mouse_NativeMouseWheelEvent->parent->getY);\r\n```\r\n[  jnativehook/src/jni/org_jnativehook_GlobalScreen.c L.173](https://github.com/kwhat/jnativehook/blob/master/src/jni/org_jnativehook_GlobalScreen.c#L173)\r\n\r\nOr am I simply doing something wrong?"},"comment":{"url":"https://api.github.com/repos/kwhat/jnativehook/issues/comments/154351006","html_url":"https://github.com/kwhat/jnativehook/issues/76#issuecomment-154351006","issue_url":"https://api.github.com/repos/kwhat/jnativehook/issues/76","id":154351006,"user":{"login":"Bluezen","id":659895,"avatar_url":"https://avatars.githubusercontent.com/u/659895?v=3","gravatar_id":"","url":"https://api.github.com/users/Bluezen","html_url":"https://github.com/Bluezen","followers_url":"https://api.github.com/users/Bluezen/followers","following_url":"https://api.github.com/users/Bluezen/following{/other_user}","gists_url":"https://api.github.com/users/Bluezen/gists{/gist_id}","starred_url":"https://api.github.com/users/Bluezen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bluezen/subscriptions","organizations_url":"https://api.github.com/users/Bluezen/orgs","repos_url":"https://api.github.com/users/Bluezen/repos","events_url":"https://api.github.com/users/Bluezen/events{/privacy}","received_events_url":"https://api.github.com/users/Bluezen/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T09:10:57Z","updated_at":"2015-11-06T09:10:57Z","body":"That was it, thank you for the quick fix!"}}