Laserlicht 1 年之前
父节点
当前提交
fb980bdb74
共有 1 个文件被更改,包括 3 次插入1 次删除
  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()