X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fkeys.cpp;h=fd7be9ec232bb734cf9c68ee277a787095e62cf6;hb=HEAD;hp=6a15f6e186f73902b53b26931eaca2c41f897398;hpb=c04d3365e5e66c2595257ebcd06191454ff6bff8;p=physics.git diff --git a/src/config/keys.cpp b/src/config/keys.cpp index 6a15f6e..fd7be9e 100644 --- a/src/config/keys.cpp +++ b/src/config/keys.cpp @@ -16,25 +16,24 @@ */ #include "keys.h" -#include "../debug.h" -#include - -/// ***** Private Method Headers ***** -/// ***** Private Variables ***** +#include +using namespace bear; -/// ***** Initializers/Cleaners ***** -void key::init() -{ - pause = SDLK_p; - end = SDLK_ESCAPE; +#include - follow = SDLK_f; +/// ***** 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; - well = SDLK_SPACE; +key::inputMap key::sdlMap; - cout << &key::end << endl; -} -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; }