introduce active and passive events
This commit is contained in:
@@ -47,12 +47,12 @@ void MainGUI::run() {
|
||||
ImGui::InputText("module: ", &s);
|
||||
|
||||
if(ImGui::Button("load"))
|
||||
app->startModule(s);
|
||||
app->emitEvent(new Archimedes::DoLoadModuleEvent(s));
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
if(ImGui::Button("unload"))
|
||||
app->stopModule(s);
|
||||
app->emitEvent(new Archimedes::DoUnloadModuleEvent(s));
|
||||
|
||||
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user