significant work on Pause component (not ready yet, but feel free to test)

This commit is contained in:
somewhatlurker
2019-10-19 15:29:07 +11:00
parent 6f839da99c
commit acbebbffc0
9 changed files with 187 additions and 0 deletions
@@ -12,6 +12,7 @@
#include "DebugComponent.h"
#include "ScaleComponent.h"
#include "ScoreSaver.h"
#include "Pause.h"
#include "GameTargets/TargetInspector.h"
using ConfigFile = TLAC::FileSystem::ConfigFile;
@@ -36,6 +37,7 @@ namespace TLAC::Components
new InputEmulator(),
new TouchSliderEmulator(),
new TouchPanelEmulator(),
new Pause(), // ensure pause is always immediately after input emulators so it can swallow inputs
new PlayerDataManager(),
new FrameRateManager(),
new FastLoader(),
@@ -133,6 +135,14 @@ namespace TLAC::Components
component->UpdateInput();
}
void ComponentsManager::UpdatePostInput()
{
for (auto& component : components)
{
component->UpdatePostInput();
}
}
void ComponentsManager::OnFocusGain()
{
for (auto& component : components)