Mednafen analog trigger fixes
Published
Fix Xbox analog triggers in mednafen.cfg (run with mednafen closed). Mednafen’s input config always writes half-axis form on Linux, because Joystick::IsAxisButton is only overridden on Windows. Triggers rest at the axis minimum, so they need the full-range “-+” form instead.
sed -i -E \
-e 's|^(psx\.input\.port1\.dualshock\.l2 joystick [^ ]+) .*|\1 abs_2-+|' \
-e 's|^(psx\.input\.port1\.dualshock\.r2 joystick [^ ]+) .*|\1 abs_5-+|' \
-e 's|^(ss\.input\.port1\.3dpad\.ls joystick [^ ]+) .*|\1 abs_2-+|' \
-e 's|^(ss\.input\.port1\.3dpad\.rs joystick [^ ]+) .*|\1 abs_5-+|' \
~/.mednafen/mednafen.cfg