examples/keyboard: refactoring

This commit is contained in:
Hajime Hoshi 2022-08-13 13:37:01 +09:00
parent 33da481d60
commit 1c548c0641

View File

@ -82,8 +82,8 @@ func (g *Game) Draw(screen *ebiten.Image) {
}
keyStrs := []string{}
for _, p := range g.keys {
keyStrs = append(keyStrs, p.String())
for _, k := range g.keys {
keyStrs = append(keyStrs, k.String())
}
ebitenutil.DebugPrint(screen, strings.Join(keyStrs, ", "))
}