fixed non-used argument, compiler warnings
[physics.git] / src / GameStates / Paused.cpp
index 166ac2f..e539f5f 100644 (file)
@@ -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::wasPressed(SDLK_p))
-        return true;
-
-    return false;
+    return cfg::paused();
 }
 bool Paused::popMe() const
 {
-    if (input::wasPressed(SDLK_p))
-        return true;
-
-    return false;
+    return !cfg::paused();
 }