diff options
Diffstat (limited to 'go/client/game.go')
| -rw-r--r-- | go/client/game.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/go/client/game.go b/go/client/game.go index 72bb9c4e..92708f3c 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -74,7 +74,8 @@ func newGame(app *app, gameState game.State) *Game { } // default key bindings - g.keyBindings[ebiten.MouseButtonLeft] = selection + g.keyBindings[ebiten.MouseButtonLeft] = clickSelection + g.keyBindings[ui.TouchTypes.Tap] = touchSelection g.keyBindings[ebiten.KeySpace] = pass g.keyBindings[ebiten.KeyEscape] = reset @@ -556,17 +557,21 @@ func (g *Game) updateHighlight() { } func (g *Game) Update() error { - g.handlePlayerNotifications() - g.handleKeyBindings(g.keyBindings) - if inpututil.IsKeyJustPressed(ebiten.KeyQ) { return ebiten.Termination } + if err := ui.TouchManager.Update(); err != nil { + return err + } + if err := g.Collection.Update(); err != nil { return err } + g.handlePlayerNotifications() + g.handleKeyBindings(g.keyBindings) + g.updatePassButton() return nil } |
