wrp: game state changing
[physics.git] / src / GameStates / Paused.cpp
index 31cbb7a..ed97101 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "Paused.h"
+#include "../input/inputManager.h"
 
 
 /// ***** Constructors/Destructors *****
@@ -43,3 +44,18 @@ void Paused::draw(bool on_top) const
 {
     // TODO
 }
+
+bool Paused::pushMe() const
+{
+    if (input::isPressed(SDLK_p))
+        return true;
+
+    return false;
+}
+bool Paused::popMe() const
+{
+    if (input::isPressed(SDLK_p))
+        return true;
+
+    return false;
+}