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/dummy-ui | |
| 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/dummy-ui')
| -rw-r--r-- | go/dummy-ui/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/go/dummy-ui/main.go b/go/dummy-ui/main.go index cf49813e..c24d5031 100644 --- a/go/dummy-ui/main.go +++ b/go/dummy-ui/main.go @@ -21,6 +21,10 @@ func (a *app) Update() error { a.build() } + if err := ui.Update(); err != nil { + return err + } + return a.Collection.Update() } |
