diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index f3d57df9e..dbae184c6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -935,7 +935,8 @@ void Game::handleInput() BLOCK_START("Game::handleInput 2") if (mLogInput) Client::logEvent(event); - updateHistory(event); + if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP) + updateHistory(event); checkKeys(); if (inputManager.handleEvent(event)) |