projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more debug changes
[physics.git]
/
src
/
config
/
keys.cpp
diff --git
a/src/config/keys.cpp
b/src/config/keys.cpp
index
6cd3cfd
..
e6eebf5
100644
(file)
--- a/
src/config/keys.cpp
+++ b/
src/config/keys.cpp
@@
-20,20
+20,18
@@
#include <SDL/SDL.h>
#include <SDL/SDL.h>
-/// ***** Private Method Headers *****
-/// ***** Private Variables *****
+/// ***** Definitions of the extern keys *****
+SDLKey key::pause = SDLK_p;
+SDLKey key::end = SDLK_ESCAPE;
+SDLKey key::follow = SDLK_f;
+SDLKey key::well = SDLK_SPACE;
-/// ***** Initializers/Cleaners *****
-void key::init()
-{
- pause = SDLK_PAUSE;
- end = SDLK_ESCAPE;
-
- follow = SDLK_f;
+key::inputMap key::sdlMap;
- well = SDLK_SPACE;
-}
-
-void key::clean()
+void key::init()
{
{
+ key::sdlMap["pause"] = &key::pause;
+ key::sdlMap["end"] = &key::end;
+ key::sdlMap["follow"] = &key::follow;
+ key::sdlMap["well"] = &key::well;
}
}