diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-06-17 11:43:34 -0500 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-03 22:01:22 -0400 |
| commit | 844b302ea1f8154010af39b3303790dc12b04737 (patch) | |
| tree | 01d03e013e43ab79a4a683a522b4a911a17c66bb /go/client | |
| parent | a31e749727f36d1f24913bbd37c16e0d66ef5561 (diff) | |
| download | muhqs-game-844b302ea1f8154010af39b3303790dc12b04737.tar.gz muhqs-game-844b302ea1f8154010af39b3303790dc12b04737.zip | |
make input events consumable
Having a input queue of consumable input events allow widgets to prevent
the further handling of the same event by different collections by
consuming the event.
Diffstat (limited to 'go/client')
| -rw-r--r-- | go/client/keybindings.go | 1 | ||||
| -rw-r--r-- | go/client/startMenu.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/go/client/keybindings.go b/go/client/keybindings.go index b39a0da4..2bfc52c7 100644 --- a/go/client/keybindings.go +++ b/go/client/keybindings.go @@ -17,6 +17,7 @@ type ( var tapToHandle ui.Tap func (g *Game) handleKeyBindings(bindings keyBindings) { + // FIXME: Use new ui.InputEvent queue for _k, a := range bindings { var remove bool diff --git a/go/client/startMenu.go b/go/client/startMenu.go index 10b9e23d..c3377a40 100644 --- a/go/client/startMenu.go +++ b/go/client/startMenu.go @@ -151,7 +151,7 @@ func (m *startMenu) Update() error { m.sealed = nil } - if err := ui.TouchManager.Update(); err != nil { + if err := ui.Update(); err != nil { return err } |
