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: Changing Joysticks  (Read 1458 times)

0 Members and 1 Guest are viewing this topic.

milhouse

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:March 02, 2023, 08:03:32 pm
Changing Joysticks
« on: February 15, 2011, 05:06:00 pm »
I am thinking of adding some swappable controls to my cab but I am concerned about the headache of dealing with the different USB IDs and joystick numbers.

For instance, if I wanted to have a USB Joystick and a USB Wheel - which would never be connected at the same time - I don't think there would be an issue because I think it would always show up as "Joystick 6" on my system.  (I have 2 UltraSticks, an A-Pac and two AimTrak devices).  And the same should happen if I added another analog USB device and only had it installed.  But I am concerned that if I reboot or someone accidentally plugs in a Nintendo USB controller to the external USB port it would throw off the input number and now maybe its Joystick 3 and I'd spend even more of my time reconfiguring Mame.

So is there a way to "lock" a joystick number to a specific device so that no matter how many devices I do or do not have plugged in at once, Mame always uses the correct controller?

Thanks.

Thanks.

penjuin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 23, 2011, 03:51:58 pm
  • The penjuins are coming...
Re: Changing Joysticks
« Reply #1 on: February 15, 2011, 05:09:45 pm »
What operating system are you using?

also, this project is along the same sort of lines: http://www.beersmith.com/mame/

milhouse

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:March 02, 2023, 08:03:32 pm
Re: Changing Joysticks
« Reply #2 on: February 15, 2011, 05:19:08 pm »
Windows XP w/ SP2.  I'm not too worried about the physical part as I am going to build a single mount in front of the main CP.  I was planning on wiring things manually to the A-Pac, but figure it would be a lot easier with USB and I could keep force feedback.  I am more worried about the software side of things and having to reset the inputs everytime I play because a joystick ID is different.
« Last Edit: February 15, 2011, 05:33:35 pm by milhouse »

penjuin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 23, 2011, 03:51:58 pm
  • The penjuins are coming...
Re: Changing Joysticks
« Reply #3 on: February 15, 2011, 07:59:11 pm »
this is an interesting problem. I'm not sure how one would solve this on windows easily, but take a look at the "devcon" utility which is built into xp. You could potentially write a batch script (or use another programming language) that would disconnect and reconnect devices in the correct order. That wouldn't completely solve the problem though, because there is no way that I know of to assign joystick 1 to a device if there is no joystick 0; you'd have to keep them all plugged in all the time.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Changing Joysticks
« Reply #4 on: February 15, 2011, 08:03:33 pm »
Did you see the utility I posted a few weeks back? I've had the exact same problem.

http://forum.arcadecontrols.com/index.php?topic=108767.0

ControllerRemap is a little exe you run right before starting Mame that will remap the controls to whatever controls you actually have currently hooked up.

I'd be interested if it works for you, or if not, what it might need

milhouse

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:March 02, 2023, 08:03:32 pm
Re: Changing Joysticks
« Reply #5 on: February 15, 2011, 10:05:16 pm »
That sounds like exactly what I need.  I will check it out once I get everything built.

Thanks.