mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
Mouse.cpp fix
This commit is contained in:
parent
1959a2e0ff
commit
383ceb7c25
1 changed files with 4 additions and 0 deletions
|
|
@ -182,6 +182,10 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_input_Mouse_nCreate
|
|||
#endif
|
||||
return JNI_FALSE;
|
||||
}
|
||||
XWarpPointer(disp, None, win, 0, 0, 0, 0, 0, 0);
|
||||
XEvent event;
|
||||
while (XCheckMaskEvent(disp, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, &event))
|
||||
; // delete events that are pending
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue