mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
imgui: migrate to new event-based IO (#604)
## Link to GitHub Issue or related Pull Request, if one exists #287 ## Description of change Switch over to new event-based I/O system in ImGui so that we can keep up with ImGui updates. Unlike #287, this change does not modify how mouse position is handled. That continues to be supported by newer versions of ImGui. ## Testing wip
This commit is contained in:
@@ -40,13 +40,17 @@ namespace overlay::windows {
|
||||
ImGui::Dummy(ImVec2(12, 0));
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID("P1");
|
||||
this->draw_buttons(0);
|
||||
ImGui::PopID();
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::Dummy(ImVec2(12, 0));
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID("P2");
|
||||
this->draw_buttons(1);
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
void DDRIOPanel::draw_buttons(const int p) {
|
||||
|
||||
Reference in New Issue
Block a user