mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -04:00
[Input pipe] Try to fix camera pos "teleported" on 1.12.2 and below
This commit is contained in:
parent
541782a566
commit
94f1423653
@ -186,8 +186,12 @@ JNIEXPORT void JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSetGrabbing(JNIE
|
|||||||
isGrabbing = grabbing;
|
isGrabbing = grabbing;
|
||||||
if (isGrabbing == JNI_TRUE) {
|
if (isGrabbing == JNI_TRUE) {
|
||||||
// Center the cursor pointer
|
// Center the cursor pointer
|
||||||
|
if (isUseStackQueueCall) {
|
||||||
grabCursorX = savedWidth / 2;
|
grabCursorX = savedWidth / 2;
|
||||||
grabCursorY = savedHeight / 2;
|
grabCursorY = savedHeight / 2;
|
||||||
|
} else {
|
||||||
|
grabCursorX = grabCursorY = 0;
|
||||||
|
}
|
||||||
isPrepareGrabPos = true;
|
isPrepareGrabPos = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user