diff options
author | Johannes Schickel | 2009-07-25 12:59:46 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-25 12:59:46 +0000 |
commit | 7e71865e91a19b022a5ad839802f79a5f300fe8d (patch) | |
tree | c86e3e37eea3ec566c6c8a1811cb8cc16196b910 /base | |
parent | 6d1a386471711df4c9ed48be3646a16f81ae0d46 (diff) | |
download | scummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.tar.gz scummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.tar.bz2 scummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.zip |
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 2d4091c0d5..18a7614511 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -41,6 +41,7 @@ #include "common/config-manager.h" #include "common/debug.h" #include "common/events.h" +#include "common/EventRecorder.h" #include "common/file.h" #include "common/fs.h" #include "common/system.h" @@ -355,6 +356,14 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { // take place after the backend is initiated and the screen has been setup system.getEventManager()->init(); + // Directly after initializing the event manager, we will initialize our + // event recorder. + // + // TODO: This is just to match the current behavior, when we further extend + // our event recorder, we might do this at another place. Or even change + // the whole API for that ;-). + g_eventRec.init(); + // Now as the event manager is created, setup the keymapper setupKeymapper(system); |