{"action":"created","issue":{"url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/85","labels_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/85/comments","events_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/85/events","html_url":"https://github.com/LWJGL/lwjgl3/issues/85","id":107010464,"number":85,"title":"Cursor position callback is called although there is no movement","user":{"login":"intrigus","id":10353467,"avatar_url":"https://avatars.githubusercontent.com/u/10353467?v=3","gravatar_id":"","url":"https://api.github.com/users/intrigus","html_url":"https://github.com/intrigus","followers_url":"https://api.github.com/users/intrigus/followers","following_url":"https://api.github.com/users/intrigus/following{/other_user}","gists_url":"https://api.github.com/users/intrigus/gists{/gist_id}","starred_url":"https://api.github.com/users/intrigus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intrigus/subscriptions","organizations_url":"https://api.github.com/users/intrigus/orgs","repos_url":"https://api.github.com/users/intrigus/repos","events_url":"https://api.github.com/users/intrigus/events{/privacy}","received_events_url":"https://api.github.com/users/intrigus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-17T15:28:31Z","updated_at":"2015-09-20T16:43:28Z","closed_at":null,"body":"If I don't move the cursor, the callback is still invoked.\r\nMy code uses a class from libgdx to load the natives, I hope you can still test this issue.\r\nOS: Windows 7 32 bit\r\nJVM: JRE 8.51\r\n\r\n```\r\n\r\npackage com.intrigus.test;\r\n\r\nimport org.lwjgl.glfw.GLFW;\r\nimport org.lwjgl.glfw.GLFWCursorPosCallback;\r\nimport org.lwjgl.opengl.GL;\r\nimport org.lwjgl.opengl.GL11;\r\n\r\npublic class CursorPosTest {\r\n\tprivate static GLFWCursorPosCallback cursorPosCallback;\r\n\r\n\tpublic static void main (String[] args) {\r\n//The native loader from libgdx...\r\n\t\tLwjgl3NativesLoader.load(!Lwjgl3ApplicationConfiguration.disableAudio);\r\n\r\n\t\tcursorPosCallback = new GLFWCursorPosCallback() {\r\n\t\t\t@Override\r\n\t\t\tpublic void invoke (long window, double xpos, double ypos) {\r\n\t\t\t\tSystem.out.println(\"xpos:\" + xpos + \"ypos:\" + ypos);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (GLFW.glfwInit() != GL11.GL_TRUE) {\r\n\t\t\tthrow new IllegalStateException(\"Unable to initialize GLFW\");\r\n\t\t}\r\n\t\tlong window = GLFW.glfwCreateWindow(640, 480, \"Simple example\", 0, 0);\r\n\t\tif (window == 0) {\r\n\t\t\tGLFW.glfwTerminate();\r\n\t\t\tthrow new RuntimeException(\"Failed to create the GLFW window\");\r\n\t\t}\r\n\r\n\t\tGLFW.glfwMakeContextCurrent(window);\r\n\t\tGL.createCapabilities();\r\n\t\tGLFW.glfwSetCursorPosCallback(window, cursorPosCallback);\r\n\t\twhile (GLFW.glfwWindowShouldClose(window) != GL11.GL_TRUE) {\r\n\t\t\tGLFW.glfwPollEvents();\r\n\t\t}\r\n\t}\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/comments/141810365","html_url":"https://github.com/LWJGL/lwjgl3/issues/85#issuecomment-141810365","issue_url":"https://api.github.com/repos/LWJGL/lwjgl3/issues/85","id":141810365,"user":{"login":"intrigus","id":10353467,"avatar_url":"https://avatars.githubusercontent.com/u/10353467?v=3","gravatar_id":"","url":"https://api.github.com/users/intrigus","html_url":"https://github.com/intrigus","followers_url":"https://api.github.com/users/intrigus/followers","following_url":"https://api.github.com/users/intrigus/following{/other_user}","gists_url":"https://api.github.com/users/intrigus/gists{/gist_id}","starred_url":"https://api.github.com/users/intrigus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intrigus/subscriptions","organizations_url":"https://api.github.com/users/intrigus/orgs","repos_url":"https://api.github.com/users/intrigus/repos","events_url":"https://api.github.com/users/intrigus/events{/privacy}","received_events_url":"https://api.github.com/users/intrigus/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T16:43:28Z","updated_at":"2015-09-20T16:43:28Z","body":"The GLFW Events demo, has the same problem.\r\nI also tried it without Lwjgl3NativesLoader, but the Issue persists :("}}