joystick_keypad
joystick_keypad ¶
A class to make a joystick act like a keypad. Taks a mapping from joystick controls to keys.
Example joymap: { 1: { # joystick instance_id 'hats': { 0: [Keys.K_LEFT, Keys.K_RIGHT, Keys.K_DOWN, Keys.K_UP] # hat index, list of keys to map to }, 'buttons': { 0: Keys.K_RETURN, # button index, key to map to 1: Keys.K_d, 2: Keys.K_f, } } }