From dbff98f354f776ca0149f81f00bb0260d62eee58 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Sun, 6 Jul 2025 22:22:21 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix:=20click=20trigger=20spam=20?= =?UTF-8?q?clicks=20(#537)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISLE/isleapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 6d1c0a99..2478f2b1 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -554,7 +554,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) g_lastJoystickMouseY = ((MxFloat) axisValue) / SDL_JOYSTICK_AXIS_MAX * g_isle->GetCursorSensitivity(); } else if (event->gaxis.axis == SDL_GAMEPAD_AXIS_RIGHT_TRIGGER) { - if (axisValue != 0) { + if (axisValue != 0 && !g_mousedown) { g_mousedown = TRUE; if (InputManager()) { @@ -567,7 +567,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) ); } } - else { + else if (axisValue == 0 && g_mousedown) { g_mousedown = FALSE; if (InputManager()) {