I have a Logitech Dual Action controller; I've created a controller.ini using HIDtest that looks like this:
[Dual Shock]
VID=046D
PID=C216
Polltype=1
DPAD=1
A=4,20
B=4,10
X=4,40
Y=4,80
Z=5,03
L=5,04
R=5,08
Power=5,10
S=5,20
Left=4,06
Down=4,04
Right=4,02
Up=4,00
RightUp=4,01
DownRight=4,03...