diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 57b855a18..32201a85b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -376,7 +376,8 @@ Game::Game(): mAdjustLevel(0), mAdjustPerfomance(config.getBoolValue("adjustPerfomance")), mLowerCounter(0), - mPing(0) + mPing(0), + mLogInput(config.getBoolValue("logInput")) { touchManager.setInGame(true); spellManager = new SpellManager; @@ -932,6 +933,8 @@ void Game::handleInput() while (SDL_PollEvent(&event)) { BLOCK_START("Game::handleInput 2") + if (mLogInput) + Client::logEvent(event); updateHistory(event); checkKeys(); |