(self)
| 1340 | self.control.hand_brake = keys[K_SPACE] |
| 1341 | |
| 1342 | def _parse_mouse(self): |
| 1343 | if pygame.mouse.get_pressed()[0]: |
| 1344 | x, y = pygame.mouse.get_pos() |
| 1345 | self.mouse_offset[0] += (1.0 / self.wheel_offset) * (x - self.mouse_pos[0]) |
| 1346 | self.mouse_offset[1] += (1.0 / self.wheel_offset) * (y - self.mouse_pos[1]) |
| 1347 | self.mouse_pos = (x, y) |
| 1348 | |
| 1349 | def parse_input(self, clock): |
| 1350 | self._parse_events() |