Laserlicht 1 year ago
parent
commit
fb980bdb74
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/eventsSDL/InputHandler.cpp

+ 3 - 1
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()