Files
kte/TestFrontend.cc
Kyle Isom e4cd4877cc Introduce file picker and GUI configuration with enhancements.
- Add visual file picker for GUI with toggle support.
- Introduce `GUIConfig` class for loading GUI settings from configuration file.
- Refactor window initialization to support dynamic sizing based on configuration.
- Add macOS-specific handling for fullscreen behavior.
- Improve header inclusion order and minor code cleanup.
2025-11-30 18:35:12 -08:00

34 lines
426 B
C++

#include "TestFrontend.h"
#include "Command.h"
#include "Editor.h"
bool
TestFrontend::Init(Editor &ed)
{
ed.SetDimensions(24, 80);
return true;
}
void
TestFrontend::Step(Editor &ed, bool &running)
{
MappedInput mi;
if (input_.Poll(mi)) {
if (mi.hasCommand) {
Execute(ed, mi.id, mi.arg, mi.count);
}
}
if (ed.QuitRequested()) {
running = false;
}
renderer_.Draw(ed);
}
void
TestFrontend::Shutdown() {}