summaryrefslogtreecommitdiff
path: root/cameltris
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-11-15 23:54:53 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-11-15 23:54:53 +0100
commit185eeb89c31da7dc245d16448469d35a2d0fad7a (patch)
tree9f5093ac9cb0c2198a6b7f674c4a31a5d2203019 /cameltris
parent0a2acea2516ff675c857c9220a5c2aa188102c14 (diff)
Cut long lines in pause screen module
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'cameltris')
-rw-r--r--cameltris/screens/pause.py6
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