def handle_raw_event(self, event): if event.type in SetJoystickKeyState.ALLOWED_TYPES and \ EventManager.is_keydown(event): self.set_event(event)