diff options
Diffstat (limited to 'pycameltris/controller.py')
-rw-r--r-- | pycameltris/controller.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pycameltris/controller.py b/pycameltris/controller.py index 3532fd9..9878536 100644 --- a/pycameltris/controller.py +++ b/pycameltris/controller.py @@ -20,6 +20,7 @@ class JoystickController: CIRCLE = 1 TRIANGLE = 2 SQUARE = 3 + START = 9 DOWN = 14 LEFT = 15 RIGHT = 16 @@ -32,6 +33,7 @@ class JoystickController: Input.MOVE_LEFT: JoystickController.PS3Controller.LEFT, Input.MOVE_RIGHT: JoystickController.PS3Controller.RIGHT, Input.MOVE_DOWN: JoystickController.PS3Controller.DOWN, + Input.PAUSE: JoystickController.PS3Controller.START, } self.downevent = pygame.JOYBUTTONDOWN self.upevent = pygame.JOYBUTTONUP @@ -65,6 +67,7 @@ class KeyboardController: Input.MOVE_RIGHT: pygame.K_l, Input.MOVE_DOWN: pygame.K_j, Input.QUIT: pygame.K_q, + Input.PAUSE: pygame.K_RETURN, } self.downevent = pygame.KEYDOWN self.upevent = pygame.KEYUP |