*I've attached a general overview of my experience with MAME OS X's compatibility with Playstation 2 Controllers at the end just in case anyone is interested*
*MAME OS X is great, much thanks to Dave Dribin and everyone who has put work into it. This is really a minuscule problem, but I figured I'd go into as much detail as possible, for the record*
I'm having problems with *multiple* Playstation 2 Controllers and MAME OS X (MOSX). The most pressing issue I'm having is that the directional input from two separate gamepads map out as if they are the coming from the exact same source (Both map as Joystick 1 Up, Down, Left and Right).
Is there any way to change any config files that control the automatic joystick detection for MOSX?
The two playstation controllers attach to my computer through a generic adapter that has two input ports and connects to the computer through only one usb port. It doesn't seem to be a hardware/driver problem because other programs detect this setup as a twin USB joystick and map separate controls for each of the gamepads' analog sticks, directional pads and buttons (ControllerMate and VisualBoyAdvance both detect the controllers correctly). If relevant, I'm on a Powerbook G4 (PPC) running OS X 10.5.
MOSX detects the 2 controllers as only one joystick. The joystick detection works wonderfully when playing on your own. MOSX also work fine for mapping the buttons on both pads. There are twelve buttons on each pad and they get mapped as Joystick 1 Button 1-24. However the analog sticks/directional pads map as the same input: Joy 1 Up, Down, Left, Right, etc.).
I've checked out /Application Support/MAME OS X/Config and .../Input and found no files that seem relevant. I also looked in /Preferences/net.mame.mameosx to no avail. I even poked around a little inside MAME OS X.app but felt a little in over my head...
As a last resort, I tried turning off the "Enable Joystick" option and mapping the joystick to keys with ControllerMate, but MOSX does not recognize the input. (Similar to a post on MOSX and USB Overdrive here:
http://www.bannister.org/forums/ubbthreads.php?ubb=showflat&Number=31515&page=7 )
Any help is greatly appreciated, thanks...
Graham
-------------------------------------------------
Here's the full compatibility info for two Playstion 2 Dual Shock controllers plugged in using a generic Playstation to USB adapter. I compared the input readings to those of ControllerMate and have made note of any disparities:
Format: Controller Button = What MAME Recieves as Input
Controller 1:Triangle = Joy 1 Button 1
Circle = Joy 1 Button 3
Cross = Joy 1 Button 5
Square = Joy 1 Button 7
L2 = Joy 1 Button 10
R2 = Joy 1 Button 11
L1 = Joy 1 Button 14
R1 = Joy 1 Button 15
Select = Joy 1 Button 17
Start = Joy 1 Button 19
Left Stick pressed in with analog on = Joy 1 Button 22
Right Stick pressed in with analog on = Joy 1 Button 24
(ControllerMate maps these as one group of buttons #1-#12)W/ ANALOG OFF:Directional Pad = Works in all 8 directions as Joy 1 [Direction]
i.e. Joy 1 Left, Joy 1 Left Up, Joy 1 Up, etc...
Left Analog Stick = Same as D-Pad...works in all 8 directions as Joy 1 [Direction]
Right Analog Stick = Works as Controller 1's main input buttons. (Up is Triangle, Right is Circle, Down is Cross, Left is Square).
(Same results with ControllerMate)W/ ANALOG ON:Directional Pad = Detected as Joystick 1 Hatswitch 1. Reads in only two directions: left (L) and right (R).
(ControllerMate detects this as an 8 directional hatswitch)Left Analog Stick = Does not read as an analog axis. Still reads as 8 directions as Joy 1 [Direction].
(ControllerMate detects as an analog axis).Right Analog Stick = Works as analog axis 3 and 4.
Controller 2:Triangle = Joy 1 Button 2
Circle = Joy 1 Button 4
Cross = Joy 1 Button 6
Square = Joy 1 Button 8
L2 = Joy 1 Button 9
R2 = Joy 1 Button 12
L1 = Joy 1 Button 13
R1 = Joy 1 Button 16
Select = Joy 1 Button 18
Start = Joy 1 Button 20
Left Stick pressed in with analog on = Joy 1 Button 21
Right Stick pressed in with analog on = Joy 1 Button 23
(ControllerMate maps these separate from the first controller as a group of buttons #1-#12)W/ ANALOG OFF:*Directional Pad = Works in all 8 directions as Joy 1 [Direction]
i.e. Joy 1 Left, Joy 1 Left Up, Joy 1 Up, etc...
Left Analog Stick = Same as D-Pad...works in all 8 directions as Joy 1 [Direction]
Right Analog Stick = Works as controller 2's main input buttons. (Up is Triangle, Right is Circle, Down is Cross, Left is Square).
W/ ANALOG ON:Directional Pad = Detected as Joystick 1 Hatswitch 1. Reads in only two directions: left (L) and right (R).
(ControllerMate detects this as an 8 directional hatswitch)Left Analog Stick = Does not read as an analog axis. Still reads as 8 directions as Joy 1 [Direction].
(ControllerMate detects as an analog axis).Right Analog Stick = Works as analog axis 3 and 4.
*Controller 2's directional and analog controls map the exact same as Controller 1. ControllerMate maps Controller 2 as a separate group of inputs*