X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fkeys.cpp;h=e6eebf5bb9399b1484bf192f3164956f9a58d975;hb=ca2d526eb092a673f37a906020f1f32d91a608d3;hp=6cd3cfd5df9f7de684e98fcc9adad4b9170a0769;hpb=b552aa3b48a0b2a3e77523dfa0454265748bcf94;p=physics.git diff --git a/src/config/keys.cpp b/src/config/keys.cpp index 6cd3cfd..e6eebf5 100644 --- a/src/config/keys.cpp +++ b/src/config/keys.cpp @@ -20,20 +20,18 @@ #include -/// ***** 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; }