diff options
-rw-r--r-- | cameltris/screens/pause.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cameltris/screens/pause.py b/cameltris/screens/pause.py index 4f9a515..760f131 100644 --- a/cameltris/screens/pause.py +++ b/cameltris/screens/pause.py @@ -27,8 +27,10 @@ class Pause(Screen): sys.exit() self.event_handler[pygame.QUIT] = exit_ - self.event_handler[pygame.JOYBUTTONDOWN] = lambda evt: handle_input_pressed(JoystickController(evt.joy), evt) - self.event_handler[pygame.KEYDOWN] = lambda evt: handle_input_pressed(KeyboardController(pygame.key), evt) + self.event_handler[pygame.JOYBUTTONDOWN] = \ + lambda evt: handle_input_pressed(JoystickController(evt.joy), evt) + self.event_handler[pygame.KEYDOWN] = \ + lambda evt: handle_input_pressed(KeyboardController(pygame.key), evt) def refresh(self) -> None: pass |