mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +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{}
|
keyStrs := []string{}
|
||||||
for _, p := range g.keys {
|
for _, k := range g.keys {
|
||||||
keyStrs = append(keyStrs, p.String())
|
keyStrs = append(keyStrs, k.String())
|
||||||
}
|
}
|
||||||
ebitenutil.DebugPrint(screen, strings.Join(keyStrs, ", "))
|
ebitenutil.DebugPrint(screen, strings.Join(keyStrs, ", "))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user