X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fconfig%2Fconfig.cpp;h=69406bc5fd63f2baf3e51305f0dc44f64f313291;hb=c46074c1fc66612c5ea0bfa1f4441491e296703d;hp=09800767d7dff7359ad646e28e830cd759e8b382;hpb=1878e7c1f8cef670e740a8f63f48afcb98386cdf;p=physics.git diff --git a/src/config/config.cpp b/src/config/config.cpp index 0980076..69406bc 100644 --- a/src/config/config.cpp +++ b/src/config/config.cpp @@ -27,11 +27,14 @@ /// ***** Private Method Headers ***** /// ***** Private Variables ***** +bool fPaused = false; + /// ***** Initializers/Cleaners ***** void cfg::init() { - readConfigs(NULL); + key::init(); + readConfigs(); // TODO read in config files } @@ -42,13 +45,10 @@ void cfg::clean() /// ***** Public Methods ***** -bool cfg::pause() -{ - return input::wasPressed(key::pause); -} -bool cfg::unPause() +bool cfg::paused() { - return input::wasPressed(key::pause); + fPaused = input::wasPressed(key::pause) ? !fPaused : fPaused; + return fPaused; } bool cfg::endGame() @@ -69,4 +69,13 @@ bool cfg::mouseWellOff() return input::wasReleased(key::well); } +bool cfg::showFPS() +{ + return true; +} +bool cfg::showUPS() +{ + return true; +} + /// ***** Private Methods *****