Just wanted to share my recent experience with hooking up a ps2 dualshock gamepad to my mac with a generic usb adapter. System Profiler lists mine as Twin USB Joystick. I was unsuccesfull at getting it to work with Mupen64plus 1.99.3, but with 1.99.4 I got it to work. It was autodetected but all messed up, the analog stick was completely backwards, up was left I think, down was right, right was up and left was down... awesome. Anyway, here's what I did to the inputautocfg.ini file inside the mupen64plus.app:
There's still some stuff I'm going to tweak to make it more intuitive for me, but this works. I was basically trying to play goldeneye and wasn't having any luck. Hope this helps someone out. Oh, and I'm running os x 10.6.5 on a macbook pro in case it helps anyone with figuring shit out.
For those who want the proper configuration for a DualShock 2 (PS2) controller using a generic USB adapter (System Profiler says manufacturer is GreenAsia. Inc.), here's how I got mine working:
[USB Joystick]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad R = hat(0 Right)
DPad L = hat(0 Left)
DPad D = hat(0 Down)
DPad U = hat(0 Up)
Start = button(9)
Z Trig = button(4)
B Button = button(3)
A Button = button(2)
C Button R = button(1) axis(1+)
C Button L = button(6) axis(1-)
C Button D = button(7) axis(0+)
C Button U = button(0) axis(0-)
R Trig = button(5)
L Trig = button(8)
Mempak switch =
Rumblepak switch =
X Axis = axis(2-,2+)
Y Axis = axis(3-,3+)
The controls are as follows:
Left analog: N64 analog
Right analog: C buttons
L1: C left
L2: Z button
R1: C down
R2: R button
Select: L button
Start: Start...
Cross: A button
Square: B button
Triangle: C up
Circle: C right
Edit
After a lot of experimenting, I finally got my SFIV TE arcade stick working just right. If any of you have TE stick setup, you can use this configuration:
[Street Fighter IV FightStick TE]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad R =
DPad L =
DPad D =
DPad U =
Start = button(4)
Z Trig = button(11)
B Button = button(13)
A Button = button(14)
C Button R = axis(4+)
C Button L = button(9)
C Button D = axis(5+)
C Button U = button(8)
R Trig = button(12)
L Trig = button(5)
Mempak switch =
Rumblepak switch =
X Axis = button(2,3)
Y Axis = button(0,1)
The controls for this setup (TE stick left, N64 right):
Stick (DP mode): analog stick
A: Z button
B: R button
X: B button
Y: A button
LB: C up
RB: C left
LT: C right
RT: C down
Back: L button
Start: Start...
Those buttons are for the 360 version of course, but the PS3 one will work as well. I didn't configure the pad since most 64 games don't use it (or they use it for minor things). If you're interested in using the 64 pad, you'll have to switch the stick mode. Left stick and right stick use axis inputs (you'll have to figure these out), and "digital pad" uses buttons 0, 1, 2, and 3.