diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index 1fc9d76a3..c70d86189 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -135,11 +135,11 @@ func (g *game) Update() error { const d = 16 toUpdateWindowSize := false if ebiten.IsKeyPressed(ebiten.KeyShift) { - if inpututil.IsKeyJustPressed(ebiten.KeyUp) { + if inpututil.IsKeyJustPressed(ebiten.KeyDown) { screenHeight += d toUpdateWindowSize = true } - if inpututil.IsKeyJustPressed(ebiten.KeyDown) { + if inpututil.IsKeyJustPressed(ebiten.KeyUp) { if 16 < screenHeight && d < screenHeight { screenHeight -= d toUpdateWindowSize = true