(self, clock)
| 1347 | self.mouse_pos = (x, y) |
| 1348 | |
| 1349 | def parse_input(self, clock): |
| 1350 | self._parse_events() |
| 1351 | self._parse_mouse() |
| 1352 | if not self._autopilot_enabled: |
| 1353 | if isinstance(self.control, carla.VehicleControl): |
| 1354 | self._parse_keys(clock.get_time()) |
| 1355 | self.control.reverse = self.control.gear < 0 |
| 1356 | world = module_manager.get_module(MODULE_WORLD) |
| 1357 | if (world.hero_actor is not None): |
| 1358 | world.hero_actor.apply_control(self.control) |
| 1359 | |
| 1360 | @staticmethod |
| 1361 | def _is_quit_shortcut(key): |
no test coverage detected