From 3c08a7bf6a52b89de8955c6010d001eac4349391 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Thu, 10 Jul 2025 17:46:41 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix:=20touch=20screens=20go=20be?= =?UTF-8?q?ep=20and=20done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISLE/isleapp.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index ddbeb6c4..dbb3c9ff 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -625,6 +625,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) 0 ); } + g_lastMouseX = event->motion.x; g_lastMouseY = event->motion.y; @@ -643,13 +644,13 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) float x = SDL_clamp(event->tfinger.x, 0, 1) * 640; float y = SDL_clamp(event->tfinger.y, 0, 1) * 480; - g_lastMouseX = x; - g_lastMouseY = y; - if (InputManager()) { InputManager()->QueueEvent(c_notificationMouseMove, LegoEventNotificationParam::c_lButtonState, x, y, 0); } + g_lastMouseX = x; + g_lastMouseY = y; + SDL_HideCursor(); g_isle->SetDrawCursor(FALSE); if (VideoManager()) { @@ -687,6 +688,15 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) if (InputManager()) { InputManager()->QueueEvent(c_notificationButtonDown, LegoEventNotificationParam::c_lButtonState, x, y, 0); } + + g_lastMouseX = x; + g_lastMouseY = y; + + SDL_HideCursor(); + g_isle->SetDrawCursor(FALSE); + if (VideoManager()) { + VideoManager()->SetCursorBitmap(NULL); + } break; } case SDL_EVENT_MOUSE_BUTTON_UP: