I'm quite interested in the psx button prompts mod.
There should also probably be an xbox360 button prompts mod as well.
For future reference, here's how to detect controllers by enumerating the axes and buttons.
The following can be ps1/2 controllers using a converter, or native pc controllers.
1) X/Y,10 buttons. normal non analog ps1 controller, or pc clone of one.
2) X/Y/XRot/YRot/12 buttons 1 pov hat = dualshock 2, or pc clone of one
3) X/Y/Z/ZRot/12 buttons 1 pov hat = same.
4) X/Y/XRot/YRot/16 buttons=dualshock 2 on really old usb converter. in this case 12-16 are probably the d-pad
5) X/Y/Z/Zrot/16 buttons=same
if these combinations are detected, the new configurator we make can ask if it's a ps1/2 controller .upon yes, we can then ask the people to press the matching buttons/move the sticks to configure the controls for matching button prompts. USUALLY triangle is button 1, but the converters are not consistent, so we need to ask. In particular, they never agree on which buttons are 9-12.
Certain logitech dual analog controllers also show up like this. They will also show as 12 buttons, but usually use the ps3 mapping below except for lack of home button.
The following is a wired ps3 controller
13 buttons, 1 pov hat, x/y/Zaxis/zrotation
In this case, we do not need to ask anything because we already know what button is what. It is ALWAYS the following
X/Y=left analog, x axis=right left and right, X rotation is up and down. square is button 1, x is 2, circle is 3, triangle is 4, l1=5,r1=6,l2=7,r2=8,select=9,start=10,l3=11,r3=12,home=13.
If someone manages to hookup a ps3 controller using special drivers, the same mapping will apply most likely, unless they emulate a 360 controller, or activate the tilt. If the tilt is activated, then x rot and y rot are the tilt.
ps4 controller is exactly the same as ps3, with 13 buttons. 13 buttons is the magic cue we don't need to ask questions.
xbox 360/one, on the other hand, shows up as
x/y/z/xrot/yrot/pov hat/10 buttons. buttons are, in order,
a/b/x/y/rb/lb/ back/start/left analog clock/right analog click. guide is not detected.
z- is right trigger, and z+ is left
xrot and y rot are right analog, and the directions you would expect.
Sadly, this IS an issue with ff7, because i can't see the triggers at ALL. So the only fix is to map them to analog clcks, and that doesn't work very well.
We detect a xbox controller by presence of 5 axes, and 10 buttons, and 1 pov hat. we then know we can install the xbox prompts mode and the xbox mapping.
With this knowledge, an intelligent configurator can be made for both the mappings in launcher AND for any psx/xbox prompts mod.