summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-11 03:28:22 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-11 03:28:22 +0300
commitcc2850190082b6feb3e5b6ccb5941caa91e36a7b (patch)
treedb540e422e4195b4488e6cdcdc98e8c4f5471457 /src/game.cpp
parenta54f29e3313c2eb60369055731b0f50bd2ff20a3 (diff)
downloadmv-cc2850190082b6feb3e5b6ccb5941caa91e36a7b.tar.gz
mv-cc2850190082b6feb3e5b6ccb5941caa91e36a7b.tar.bz2
mv-cc2850190082b6feb3e5b6ccb5941caa91e36a7b.tar.xz
mv-cc2850190082b6feb3e5b6ccb5941caa91e36a7b.zip
Initialize joystick and keyboard mapping in game start.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 902411f69..a564cd4b2 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -172,6 +172,10 @@ static void initEngines()
DepricatedEvent::trigger(CHANNEL_GAME,
DepricatedEvent(EVENT_ENGINESINITALIZED));
+
+ keyboard.update();
+ if (joystick)
+ joystick->update();
}
/**