class PMOptions:
def __init__(โฆ)
[โฆ]
self.allow_pad = opts['allow_pad']
def handle_events(self, events):
[โฆ] if event.type == pygame.JOYAXISMOTION: action = self.CONTROLS.get_action('joystick', event.dict) if event.type == pygame.JOYAXISMOTION and self.cfg.options.allow_pad: action = self.CONTROLS.get_action('joystick', event.dict)
if event.type == pygame.JOYBUTTONDOWN and self.cfg.options.allow_pad: action = self.CONTROLS.get_action('joystick', event.dict)
allow_pad: False allow_pad: True It looks like you’re new here. If you want to get involved, click one of these buttons!