Add "analog button" option for PSX cores

I’m using RetroArch-Phoenix and RetroArch on an x86_64 Ubuntu Linux laptop, with all the cores that libretro-super provides; I’ve compiled everything myself from source.

Currently the RetroArch-Phoenix GUI has the ability to configure analog controls, but joysticks don’t work in-game with RetroArch because there’s no “analog button” to switch to/from analog mode. Regular Mednafen has the button available, and when the button is pressed an on-screen message appears indicating analog mode has been turned on/off. I don’t know how support for an “analog button” could be added, but adding support is required for games like Ape Escape to be playable. I can still use regular Mednafen to play games with joysticks, though.

Edit: Nevermind, I found the “DualAnalog” option in RetroArch-Phoenix’s menu entry Settings->Controllers->Port 1->DualAnalog; setting the option makes joysticks work in the Mednafen PSX core.

I still can’t get Ape Escape to work correctly even with DualAnalog selected in Phoenix’s settings or with the -A 1 command. It says Please Connect a DualShock controller. It might be because DualShock and DualAnalog are different controllers. If I remember right, using a DualAnalog on the real system wouldn’t work with that game. In Mednafen proper there is a specific DualShock controller option which is the one that lets you assign an analog on/off button/key. I find it’s the best option since it doesn’t break games that don’t support analog, since it defaults to analog off. It even auto detects some games like Ape Escape and turns on the analogs automatically.

Edit: Just tried out the new wip3, and it works there with the -A 1 command line option or just turning analog on via RGUI. Auto-detection like regular Mednafen has would still be nice though.

I Know That This Is An Older Thread But I Desperately Want To Play Ape Escape. I Have Afraid Xt912 And a pS3 Dual Shock Controller.There Doesn’t Appear To Be A Way To Map Both Analog Sticks. Is There Going To Be An Added Overlay For Dual Analog Soon Or Should I Just Delete Ape Escape.