significant work on Pause component (not ready yet, but feel free to test)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user