diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-06-17 11:43:34 -0500 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:21 +0200 |
| commit | 4206d7fe5cf450fbc1f9a16e8d57b85c08df3dab (patch) | |
| tree | c0dd008bcb47fe6e7af49e5b79ba928ace002cc7 /go/dummy-ui | |
| parent | ab08e0b7c7ebc50549392e6de3908dfa61f1e973 (diff) | |
| download | muhqs-game-4206d7fe5cf450fbc1f9a16e8d57b85c08df3dab.tar.gz muhqs-game-4206d7fe5cf450fbc1f9a16e8d57b85c08df3dab.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() } |
