X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FGameStates%2FPaused.cpp;h=e539f5f75c84362012ab8fd0d68b347fbe9db7c7;hb=60addc0838dad313d5d76247fa2665c20fea7689;hp=ed9710178bd1e718144eb4b14e69f446d17f70c6;hpb=55e5393b9b8689f4e70f2775e52aad49d805b0c0;p=physics.git diff --git a/src/GameStates/Paused.cpp b/src/GameStates/Paused.cpp index ed97101..e539f5f 100644 --- a/src/GameStates/Paused.cpp +++ b/src/GameStates/Paused.cpp @@ -16,8 +16,7 @@ */ #include "Paused.h" -#include "../input/inputManager.h" - +#include "config/config.h" /// ***** Constructors/Destructors ***** @@ -32,30 +31,24 @@ Paused::~Paused() /// ***** Public Class Methods ***** -void Paused::handleInput(bool on_top) const +void Paused::handleInput(bool /*on_top*/) const { // TODO } -void Paused::update(float time_step, bool on_top) const +void Paused::update(float /*time_step*/, bool /*on_top*/) const { } -void Paused::draw(bool on_top) const +void Paused::draw(bool /*on_top*/) const { // TODO } bool Paused::pushMe() const { - if (input::isPressed(SDLK_p)) - return true; - - return false; + return cfg::paused(); } bool Paused::popMe() const { - if (input::isPressed(SDLK_p)) - return true; - - return false; + return !cfg::paused(); }