mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/keyboard: refactoring
This commit is contained in:
parent
33da481d60
commit
1c548c0641
@ -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, ", "))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user