X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FGameStates%2FPaused.cpp;h=ed9710178bd1e718144eb4b14e69f446d17f70c6;hb=55e5393b9b8689f4e70f2775e52aad49d805b0c0;hp=31cbb7a28d6afc5238d3334ebcd404ec6f019400;hpb=e68f847b245153427266841ae724d602ca434c29;p=physics.git diff --git a/src/GameStates/Paused.cpp b/src/GameStates/Paused.cpp index 31cbb7a..ed97101 100644 --- a/src/GameStates/Paused.cpp +++ b/src/GameStates/Paused.cpp @@ -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; +}