X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fconfig.cpp;h=09800767d7dff7359ad646e28e830cd759e8b382;hb=1878e7c1f8cef670e740a8f63f48afcb98386cdf;hp=ae569fa3ced4543bede3cec1b1e9be56481db97f;hpb=b1d92c2f86c7da20ef22f9e064ff9b1a2d5ede4e;p=physics.git diff --git a/src/config/config.cpp b/src/config/config.cpp index ae569fa..0980076 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,8 @@ void cfg::init() { + readConfigs(NULL); + // TODO read in config files } void cfg::clean() @@ -36,16 +44,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::wasPressed(key::well); +} +bool cfg::mouseWellOff() +{ + return input::wasReleased(key::well); } /// ***** Private Methods *****