diff options
author | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-07-16 15:23:34 +0000 |
---|---|---|
committer | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-07-16 15:23:34 +0000 |
commit | 71532a23200b246f63ed1e0dc3d563bd1184b593 (patch) | |
tree | 2ce28dd04573bb40b31e367d7d980b32f113edab /src/main.cpp | |
parent | bb5f430e6f7e1471aefc1de22e423e6015d0236c (diff) | |
download | mana-71532a23200b246f63ed1e0dc3d563bd1184b593.tar.gz mana-71532a23200b246f63ed1e0dc3d563bd1184b593.tar.bz2 mana-71532a23200b246f63ed1e0dc3d563bd1184b593.tar.xz mana-71532a23200b246f63ed1e0dc3d563bd1184b593.zip |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1a6aea4c..e147f760 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,6 +45,7 @@ #endif #include "configuration.h" +#include "keyboardconfig.h" #include "game.h" #include "graphics.h" #include "lockedarray.h" @@ -103,6 +104,7 @@ Music *bgm; Configuration config; /**< XML file configuration reader */ Logger *logger; /**< Log object */ +KeyboardConfig keyboard; /** * A structure holding the values of various options that can be passed from @@ -318,12 +320,20 @@ void init_engine(const Options &options) errorMessage = err; logger->log("Warning: %s", err); } + + //Initialize keyboard + keyboard.init(); } /** Clear the engine */ void exit_engine() { + // Store keys and Remove Keyboard configuration. + keyboard.store(); + keyboard.destroy(); + config.write(); + delete gui; delete graphics; |