add to gui
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user