From fb980bdb7428db673d11f0ed035df455b45f2b0d Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Fri, 19 Jul 2024 03:28:33 +0200 Subject: [PATCH] fix --- client/eventsSDL/InputHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/eventsSDL/InputHandler.cpp b/client/eventsSDL/InputHandler.cpp index b0e1d141b..777119c20 100644 --- a/client/eventsSDL/InputHandler.cpp +++ b/client/eventsSDL/InputHandler.cpp @@ -130,8 +130,10 @@ void InputHandler::handleCurrentEvent(const SDL_Event & current) void InputHandler::setCurrentInputModi(InputModi modi) { if(currentInputModi != modi) + { + currentInputModi = modi; GH.events().dispatchInputModiChanged(modi); - currentInputModi = modi; + } } InputModi InputHandler::getCurrentInputModi()