Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: BYOACOnyx on August 18, 2011, 03:28:19 pm

Title: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
Post by: BYOACOnyx on August 18, 2011, 03:28:19 pm
I'm getting started configuring CPWizard and I love it. I've managed to configure different layouts to accommodate the multitude of controls on my Frankenboard. The only issue I'm having is with dual-joystick games like Smash TV.

My CP has dual sticks for both players 1 and 2 just for this purpose. They are mapped as joystick 3 and 4 (each as the right stick for players 1 and 2 respectively). This works fine in the games once I have it mapped correctly.

But since MAME labels these as P1 JOYSTICKLEFT, P1 JOYSTICKRIGHT, P2 JOYSTICKLEFT etc etc. I can't map labels to them as I would like since CPWizard only has JOYCODES for P1, P2, etc. with no designation for left and right sticks. Unless I'm missing something.

How do other people have CPWizard configured to contend with this?
Title: Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
Post by: headkaze on August 19, 2011, 07:41:46 am
Check out CPWizard\Data\InputCodes\JoyCodes.txt. You can add additional codes there. If there are some ones I need to add please post your updated JoyCodes.txt here and I can include it with the next version of CPWizard.
Title: Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
Post by: BYOACOnyx on August 19, 2011, 11:55:06 am
Killer. Thanks HK!

Thanks also for writing a *great* app that is incredibly useful, fantastically customizable and fun to play with. Also, I find it awesome how often I see you take the time to reply to so many questions on the product when I was researching. Kudos.
Title: Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
Post by: BYOACOnyx on August 19, 2011, 01:21:42 pm
Okay, HK, I got it figured out.

There's no need for additional codes on your end.

My CP is configured and set up in MAME as such for 2-player 8-way Joystick games:

            ***PLAYER 1***                                                          ***PLAYER 2***
Joystick 1     Buttons     Joystick 3                                   Joystick 2     Buttons     Joystick 4


I had to map a label for Player_1_Joystick to both stick graphics for Joysticks 1 and 3.
I had to map a label for Player_2_Joystick to both stick graphics for Joysticks 2 and 4.

I had to map the labels for Joystick 1 (up, down, left right) to JOYCODE_1_SWITCHes (xaxis, yaxis)
I had to map the labels for Joystick 3 to JOYCODE_3_SWITCHes

I had to map the labels for Joystick 2 to JOYCODE_2_SWITCHes
I had to map the labels for Joystick 4 to JOYCODE_4_SWITCHes

So basically the joysticks only utilize player 1 and 2 joystick controls, but their labels utilize joycodes for 1-4.

Again, thanks for a really robust app.