Bug fix: grab state was not updated

This commit is contained in:
Duy Tran Khanh committed 2021-02-06 09:11:27 +07:00
1 parent 7521010b7e
commit 55ed5140aa
3 files changed
+6 -6

No files matched your search

@@ -178,6 +178,9 @@ public class CallbackBridge {
public static void sendGrabbing(boolean grab, int xset, int yset) {
// sendData(ANDROID_TYPE_GRAB_STATE, Boolean.toString(grab));
mouseX = xset;
mouseY = yset;
GLFW.mGLFWIsGrabbing = grab;
nativeSetGrabbing(grab, xset, yset);
}
@@ -209,9 +212,6 @@ public class CallbackBridge {
return "";
}
private static void nativeSetGrabbing(boolean grab, int xset, int yset) {
mouseX = xset;
mouseY = yset;
}
private static native void nativeSetGrabbing(boolean grab, int xset, int yset);
}