Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: CPWizard and Dual Joystick games (Smash TV, Total Carnage)  (Read 1724 times)

0 Members and 1 Guest are viewing this topic.

BYOACOnyx

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 20, 2013, 12:43:21 am
CPWizard and Dual Joystick games (Smash TV, Total Carnage)
« 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?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
« Reply #1 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.

BYOACOnyx

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 20, 2013, 12:43:21 am
Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
« Reply #2 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.

BYOACOnyx

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 20, 2013, 12:43:21 am
Re: CPWizard and Dual Joystick games (Smash TV, Total Carnage)
« Reply #3 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.