inpututil: Bug fix: for-loop range was wrong (#415)

This commit is contained in:
Hajime Hoshi 2018-02-04 23:17:49 +09:00
parent 7aba5bd8d6
commit 21a83f5ace

View File

@ -50,7 +50,7 @@ func (i *inputState) update() {
i.m.Lock()
defer i.m.Unlock()
for k := ebiten.Key(0); k < ebiten.KeyMax; k++ {
for k := ebiten.Key(0); k <= ebiten.KeyMax; k++ {
if ebiten.IsKeyPressed(k) {
i.keyStates[k]++
} else {