use KEYUP instead of KEYDOWN because otherwise switching from beamer mode does not work

master
Simon Pirkelmann 2021-09-06 00:22:58 +02:00
parent 8c544f8fcc
commit 57cd60de8c
1 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ class Game:
pygame.time.wait(1500)
self.state = 'reset'
pygame.display.update()
pygame.display.flip()
def process_inputs(self):
# proceed events
@ -400,7 +400,7 @@ class Game:
self.state = 'input'
elif self.state == 'input':
self.state = 'running'
elif event.type == pygame.KEYDOWN:
elif event.type == pygame.KEYUP:
if event.key == pygame.K_x:
if not self.beamer_mode:
# switch to beamer mode