From 91023f53ac00c4fafbf154d0960357e2b131a802 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Dec 2012 00:58:35 +0300 Subject: add option for input logging. --- src/game.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') 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(); -- cgit v1.2.3-70-g09d2