X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fconfig.cpp;h=3b694ba39154fc725ede0853073e838edca570eb;hb=ca2d526eb092a673f37a906020f1f32d91a608d3;hp=35efe4f3b4543e52fa932d8819f5e5290e350888;hpb=f103ba70ea4095f42852cbfca9e5525737db8efb;p=physics.git diff --git a/src/config/config.cpp b/src/config/config.cpp index 35efe4f..3b694ba 100644 --- a/src/config/config.cpp +++ b/src/config/config.cpp @@ -16,6 +16,12 @@ */ #include "config.h" +#include "../debug.h" + +#include +#include "keys.h" + +#include "reader.h" #include "../input/inputManager.h" /// ***** Private Method Headers ***** @@ -25,6 +31,9 @@ void cfg::init() { + key::init(); + readConfigs(); + // TODO read in config files } void cfg::clean() @@ -36,29 +45,29 @@ void cfg::clean() bool cfg::pause() { - return input::wasPressed(SDLK_p); + return input::wasPressed(key::pause); } bool cfg::unPause() { - return input::wasPressed(SDLK_p); + return input::wasPressed(key::pause); } bool cfg::endGame() { - return input::wasReleased(SDLK_ESCAPE); + return input::wasReleased(key::end); } bool cfg::mouseWellFollow() { - return input::isPressed(SDLK_f); + return input::isPressed(key::follow); } bool cfg::mouseWellOn() { - return input::wasPressed(SDLK_SPACE); + return input::wasPressed(key::well); } bool cfg::mouseWellOff() { - return input::wasReleased(SDLK_SPACE); + return input::wasReleased(key::well); } /// ***** Private Methods *****