pause: pause on focus lost (+ some minor cleanup)

This commit is contained in:
somewhatlurker
2019-10-23 11:17:58 +11:00
parent 0f5745cde1
commit b5b0af0e15
2 changed files with 23 additions and 6 deletions
@@ -22,12 +22,14 @@ namespace TLAC::Components
virtual void Update() override;
virtual void UpdatePostInput() override;
virtual void UpdateDraw2D() override;
virtual void OnFocusLost() override;
static bool pause; // set pause to change pause state
static bool giveUp; // set give up to end current song
private:
// this is a mess of static so that menuItems can work
static bool isPauseKeyTapped();
static bool isInGame();
static std::vector<bool> streamPlayStates;
static void InjectCode(void* address, const std::vector<uint8_t> data);
@@ -62,10 +64,10 @@ namespace TLAC::Components
static bool showUI;
int triangleAet;
int squareAet;
int crossAet;
int circleAet;
static int triangleAet;
static int squareAet;
static int crossAet;
static int circleAet;
enum menusets
{