mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-04 15:59:56 +01:00
Mouse.cpp fix
This commit is contained in:
parent
1959a2e0ff
commit
383ceb7c25
|
|
@ -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…
Reference in a new issue