mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
inpututil: Bug fix: for-loop range was wrong (#415)
This commit is contained in:
parent
7aba5bd8d6
commit
21a83f5ace
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user