🔥 HOTFIX: Call g_amiga_shell.onTick() in main loop
PROBLEM: - AmigaUI Shell initialized (g_amiga_shell.init/onStart) but NEVER DISPLAYED - loop() only called g_app_coordinator.tick() which renders story scenario - Device booted to story instead of Amiga UI grid launcher despite init SOLUTION: - Modified loop() to route to g_amiga_shell.onTick() when g_amiga_shell_mode_boot=true - Now renders AmigaUI Shell grid (4x4 with 20 apps) instead of story scenario - Touch emulation (P1.1) now works with proper UI rendering RESULT: ✅ Device boots directly to AmigaUI Shell grid launcher ✅ Touch emulation integrated and visible ✅ App icons and grid navigation ready for user input
This commit is contained in:
@@ -8307,5 +8307,13 @@ void runRuntimeIteration(uint32_t now_ms) {
|
||||
void loop() {
|
||||
const uint32_t now_ms = millis();
|
||||
pollSerialCommands(now_ms);
|
||||
g_app_coordinator.tick(now_ms);
|
||||
|
||||
// Route to AmigaUI Shell or traditional app coordinator based on boot mode
|
||||
if (g_amiga_shell_mode_boot) {
|
||||
// AmigaUI Shell mode: draw grid launcher with app icons
|
||||
g_amiga_shell.onTick(16); // ~60 FPS tick (16ms)
|
||||
} else {
|
||||
// Traditional scenario/story mode
|
||||
g_app_coordinator.tick(now_ms);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user