What do I need to change in ppssppControllers.py to have DPAD mapped to the Axis’s?
SDLJoyAxisMap = {
"0" : JOYSTICK_AXIS_X,
"1" : JOYSTICK_AXIS_Y,
"2" : JOYSTICK_AXIS_Z,
"3" : JOYSTICK_AXIS_RZ,
"4" : JOYSTICK_AXIS_LTRIGGER,
"5" : JOYSTICK_AXIS_RTRIGGER
}
ppssppMapping = { ‘a’ : {‘button’: ‘Circle’},
'b' : {'button': 'Cross'},
'x' : {'button': 'Triangle'},
'y' : {'button': 'Square'},
'start' : {'button': 'Start'},
'select' : {'button': 'Select'},
'hotkey' : {'button': 'Pause'},
'pageup' : {'button': 'L'},
'pagedown' : {'button': 'R'},
'joystick1left' : {'axis': 'An.Left'},
'joystick1up' : {'axis': 'An.Up'},
'joystick2left' : {'axis': 'RightAn.Left'},
'joystick2up' : {'axis': 'RightAn.Up'},
# The DPAD can be an axis (for gpio sticks for example) or a hat
'up' : {'hat': 'Up', 'axis': 'Up', 'button': 'Up'},
'down' : {'hat': 'Down', 'axis': 'Down', 'button': 'Down'},
'left' : {'hat': 'Left', 'axis': 'Left', 'button': 'Left'},
'right' : {'hat': 'Right', 'axis': 'Right', 'button': 'Right'},
# Need to add pseudo inputs as PPSSPP doesn't manually invert axises, and these are not referenced in es_input.cfg
'joystick1right' :{'axis': 'An.Right'},
'joystick1down' : {'axis': 'An.Down'},
'joystick2right' :{'axis': 'RightAn.Right'},
'joystick2down' : {'axis': 'RightAn.Down'}