aboutsummaryrefslogtreecommitdiff
path: root/go/dummy-ui
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-06-17 11:43:34 -0500
committerFlorian Fischer <florian.fischer@muhq.space>2025-07-03 22:01:22 -0400
commit844b302ea1f8154010af39b3303790dc12b04737 (patch)
tree01d03e013e43ab79a4a683a522b4a911a17c66bb /go/dummy-ui
parenta31e749727f36d1f24913bbd37c16e0d66ef5561 (diff)
downloadmuhqs-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.go4
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()
}