Rerwite everything to share an egui context

This commit is contained in:
2026-04-02 23:51:01 -04:00
parent 615b0ab9a1
commit f7b37caccb
16 changed files with 686 additions and 553 deletions
+1 -5
View File
@@ -1,4 +1,4 @@
use egui::{Button, CentralPanel, Label, Layout, Panel, Ui, ViewportBuilder, ViewportId};
use egui::{Button, CentralPanel, Label, Layout, Panel, Ui, ViewportBuilder};
use egui_extras::{Column, TableBuilder};
use gilrs::{EventType, GamepadId};
use std::sync::RwLock;
@@ -160,10 +160,6 @@ impl InputWindow {
}
impl AppWindow for InputWindow {
fn viewport_id(&self) -> ViewportId {
ViewportId::from_hash_of("input")
}
fn initial_viewport(&self) -> ViewportBuilder {
ViewportBuilder::default()
.with_title("Bind Inputs")