Clean up key press check.

This commit is contained in:
2023-09-13 08:43:58 -04:00
parent 220e0ed712
commit afab7697bb

View File

@@ -106,9 +106,6 @@ func NewParallax() Parallax {
func (p *Parallax) Update() error {
p.increment++
var keysPressed []ebiten.Key
keysPressed = inpututil.AppendJustPressedKeys(keysPressed[:0])
//check for user input to transition scene
if inpututil.IsKeyJustPressed(ebiten.KeyQ) {
if p.events[groovy.COMPLETED] != nil {