From fa95b4a06a9e16ab30c67dd19fc399e825af3bb6 Mon Sep 17 00:00:00 2001 From: Vera-Firefly <87926662+Vera-Firefly@users.noreply.github.com> Date: Wed, 23 Aug 2023 21:08:46 +0800 Subject: [PATCH] Update --- app_pojavlauncher/src/main/jni/input_bridge_v3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/jni/input_bridge_v3.c b/app_pojavlauncher/src/main/jni/input_bridge_v3.c index d522df52c..04a1a1854 100644 --- a/app_pojavlauncher/src/main/jni/input_bridge_v3.c +++ b/app_pojavlauncher/src/main/jni/input_bridge_v3.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "log.h" #include "utils.h" @@ -139,7 +140,8 @@ void pojavPumpEvents(void* window) { if((pojav_environ->cLastX != pojav_environ->cursorX || pojav_environ->cLastY != pojav_environ->cursorY) && pojav_environ->GLFW_invoke_CursorPos) { pojav_environ->cLastX = pojav_environ->cursorX; pojav_environ->cLastY = pojav_environ->cursorY; - pojav_environ->GLFW_invoke_CursorPos(window, pojav_environ->cursorX, pojav_environ->cursorY); + pojav_environ->GLFW_invoke_CursorPos(window, floor(pojav_environ->cursorX), + floor(pojav_environ->cursorY)); } // The out target index is updated by the rewinder