paused key control moved to config
[physics.git] / src / GameStates / Paused.cpp
index 166ac2f..8f35c70 100644 (file)
@@ -16,8 +16,7 @@
  */
 
 #include "Paused.h"
-#include "../input/inputManager.h"
-
+#include "../configs/paused_cfg.h"
 
 /// ***** Constructors/Destructors *****
 
@@ -47,15 +46,9 @@ void Paused::draw(bool on_top) const
 
 bool Paused::pushMe() const
 {
-    if (input::wasPressed(SDLK_p))
-        return true;
-
-    return false;
+    return CFG::pause();
 }
 bool Paused::popMe() const
 {
-    if (input::wasPressed(SDLK_p))
-        return true;
-
-    return false;
+    return CFG::unPause();
 }