pause: don't listen for menu input when menu is hidden, improve keys legend, add pulsing effect to selected item's text, remove isUnpauseKeyTapped

This commit is contained in:
somewhatlurker
2019-10-20 19:58:09 +11:00
parent b0cefbe1d1
commit 52a2b0df96
3 changed files with 58 additions and 26 deletions
@@ -2,6 +2,7 @@
#include "../Constants.h"
#include "EmulatorComponent.h"
#include <vector>
#include <chrono>
namespace TLAC::Components
{
@@ -24,7 +25,6 @@ namespace TLAC::Components
private:
// this is a mess of static so that menuItems can work
static bool isPauseKeyTapped();
static bool isUnpauseKeyTapped();
static std::vector<bool> streamPlayStates;
static void InjectCode(void* address, const std::vector<uint8_t> data);
@@ -44,6 +44,8 @@ namespace TLAC::Components
static bool showUI;
static unsigned int menuPos;
static std::chrono::time_point<std::chrono::high_resolution_clock> menuItemSelectTime;
static void unpause() { setPaused(false); };
static void giveup() { giveUp = true; };