diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-20 00:58:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-20 01:24:45 +0300 |
commit | 91023f53ac00c4fafbf154d0960357e2b131a802 (patch) | |
tree | a066fadd2c40e76fe970178fe932cb1189c36b42 /src/game.cpp | |
parent | fc0bffc8aa066409c4538907fe96f389712e24ff (diff) | |
download | manaplus-91023f53ac00c4fafbf154d0960357e2b131a802.tar.gz manaplus-91023f53ac00c4fafbf154d0960357e2b131a802.tar.bz2 manaplus-91023f53ac00c4fafbf154d0960357e2b131a802.tar.xz manaplus-91023f53ac00c4fafbf154d0960357e2b131a802.zip |
add option for input logging.
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(); |