mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[sim] Add exported functions to control the sim GUI (#3995)
This commit is contained in:
@@ -32,3 +32,23 @@ void HALSimGui::GlobalInit() {
|
||||
|
||||
glass::AddStandardNetworkTablesViews(*ntProvider);
|
||||
}
|
||||
|
||||
namespace halsimgui {
|
||||
|
||||
void AddGuiInit(std::function<void()> initialize) {
|
||||
wpi::gui::AddInit(std::move(initialize));
|
||||
}
|
||||
|
||||
void AddGuiEarlyExecute(std::function<void()> execute) {
|
||||
wpi::gui::AddEarlyExecute(std::move(execute));
|
||||
}
|
||||
|
||||
void AddGuiLateExecute(std::function<void()> execute) {
|
||||
wpi::gui::AddLateExecute(std::move(execute));
|
||||
}
|
||||
|
||||
void GuiExit() {
|
||||
wpi::gui::Exit();
|
||||
}
|
||||
|
||||
} // namespace halsimgui
|
||||
|
||||
Reference in New Issue
Block a user