X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fkeys.cpp;h=8832be551a16f32a430933fb1d773eaa21db0fd3;hb=3d1f081343dc603a3292538eeb9bd794b255deb6;hp=6ac87bb3248ed7111ed76caedb6bc384817d8a31;hpb=1878e7c1f8cef670e740a8f63f48afcb98386cdf;p=physics.git diff --git a/src/config/keys.cpp b/src/config/keys.cpp index 6ac87bb..8832be5 100644 --- a/src/config/keys.cpp +++ b/src/config/keys.cpp @@ -16,12 +16,22 @@ */ #include "keys.h" -#include "../debug.h" +#include "debug.h" #include /// ***** 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; +SDLKey key::pause = SDLK_p; +SDLKey key::end = SDLK_ESCAPE; +SDLKey key::follow = SDLK_f; +SDLKey key::well = SDLK_SPACE; + +key::inputMap key::sdlMap; + +void key::init() +{ + key::sdlMap["pause"] = &key::pause; + key::sdlMap["end"] = &key::end; + key::sdlMap["follow"] = &key::follow; + key::sdlMap["well"] = &key::well; +}