From f9dd0fbabe5348fcd9841978cdd9d3a5824a5dec Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 13 Mar 2021 09:51:24 -0500 Subject: Pause menu commands can do something #7 --- src/input_system.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/input_system.cpp') diff --git a/src/input_system.cpp b/src/input_system.cpp index 0c68c49..25af7ed 100644 --- a/src/input_system.cpp +++ b/src/input_system.cpp @@ -75,6 +75,10 @@ void InputSystem::tick(double dt) { } } } else if (e.key.keysym.sym == SDLK_SPACE) { + if (game_.getSystem().isMenuOpen()) { + game_.getSystem().activateOption(); + } + if (game_.isGameplayPaused()) continue; // If there is text on screen, try to advance it. -- cgit 1.4.1