X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fconfig.cpp;h=3b694ba39154fc725ede0853073e838edca570eb;hb=338e728a60fc9135b534be4e8ad0bb43997a1ea4;hp=895c1d964cc38101830e68733a59eb661ca3254a;hpb=a860c0c739f42bb52b3ad482cec6a57b5484fd71;p=physics.git diff --git a/src/config/config.cpp b/src/config/config.cpp index 895c1d9..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,21 +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(key::follow); +} bool cfg::mouseWellOn() { - return input::isPressed(SDLK_SPACE); + return input::wasPressed(key::well); +} +bool cfg::mouseWellOff() +{ + return input::wasReleased(key::well); } /// ***** Private Methods *****