state changing wrp complete, pause working correctly
[physics.git] / src / GameStates / Paused.cpp
index ed97101..166ac2f 100644 (file)
@@ -47,14 +47,14 @@ void Paused::draw(bool on_top) const
 
 bool Paused::pushMe() const
 {
-    if (input::isPressed(SDLK_p))
+    if (input::wasPressed(SDLK_p))
         return true;
 
     return false;
 }
 bool Paused::popMe() const
 {
-    if (input::isPressed(SDLK_p))
+    if (input::wasPressed(SDLK_p))
         return true;
 
     return false;