add to gui

This commit is contained in:
Avery Haas
2026-08-31 23:57:40 -04:00
parent 120e4f505f
commit 1175b498b0
11 changed files with 90 additions and 5 deletions
+6
View File
@@ -40,9 +40,15 @@ int main() {
stats.extra_stats.push_back({"Oil Temp", 0.0, "C"});
stats.extra_stats.push_back({"Coolant Temp", 0.0, "C"});
stats.extra_stats.push_back({"Throttle Position", sim.engine().get_throttle(), "%"});
gui.render(stats);
gui.end_frame();
// The lever now lives inline in render()'s window, so it's read
// after drawing — this frame's drag feeds next frame's step,
// same one-frame lag as gui.accessories().
sim.engine().set_throttle(gui.throttle());
}
gui.shutdown();