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: controller ID numbers - are they assignable?  (Read 9210 times)

0 Members and 1 Guest are viewing this topic.

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
controller ID numbers - are they assignable?
« on: May 09, 2012, 03:16:34 pm »
hey all,

now that i have a removable star wars yoke on my machine with dual strike hack, i was wondering if there is any way in xp to have a plugged in controller always come up with the same joystick ID?

i ask because if i have my 360 pad plugged in at boot, the 360 pad is joystick 1, then plug in the star wars and it comes up joystick 2.  if the 360 pad is not plugged in, star wars yoke will be joystick 1.

as i move to adding more removable modules (and pedals), i don't want to have to go into mame config and assign controls every time i plug a controller in.

not even sure if it's possible but thought i'd ask.

many thanks!

Hoopz

  • Don't brand me a troublemaker!
  • Trade Count: (+8)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5285
  • Last login:June 13, 2025, 09:18:32 pm
  • Intellivision Rocks!

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: controller ID numbers - are they assignable?
« Reply #2 on: May 09, 2012, 03:46:54 pm »
That is a problem without a good solution as far as I know. If you keep your controls plugged in, it should keep the same ID when it is restarted. In theory, if one of your two devices is always plugged in, and plugged into the USB port your computer recognizes as the first USB port, then you should be able to plug and unplug device 2 without the ID changing.

There is also a utility call JoyIDs that will allow you to reassign the ID, but it won't keep that assignment in memory. The minute you unplug again, it will shift the assignment around and you have to change it all over again in JoyIds. It still beats reconfiguring in MAME.


Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: controller ID numbers - are they assignable?
« Reply #3 on: May 09, 2012, 03:50:04 pm »
I completely forgot about ControllerRemap. Thanks for reminding me, Hoopz. I still have to try it out.


Forget my previous post.

nick3092

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
  • Last login:March 22, 2022, 03:57:28 pm
Re: controller ID numbers - are they assignable?
« Reply #4 on: May 10, 2012, 12:59:12 am »
That is a problem without a good solution as far as I know. If you keep your controls plugged in, it should keep the same ID when it is restarted. In theory, if one of your two devices is always plugged in, and plugged into the USB port your computer recognizes as the first USB port, then you should be able to plug and unplug device 2 without the ID changing.

There is also a utility call JoyIDs that will allow you to reassign the ID, but it won't keep that assignment in memory. The minute you unplug again, it will shift the assignment around and you have to change it all over again in JoyIds. It still beats reconfiguring in MAME.



Windows enumerates USB joysticks by vendor and product ID. I did extensive testing with several devices a little over a year ago. At least that's how it works with MAME and presumably other Direct Input software. The Logitech program only works with certain software. MAME ignores it, but MaLa honors it. Most likely because MaLa isnt using DI.

I have seen discussions around ControllerRemap. Just haven't had time to check into it personally.

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: controller ID numbers - are they assignable?
« Reply #5 on: May 10, 2012, 11:29:21 am »
Windows enumerates USB joysticks by vendor and product ID. I did extensive testing with several devices a little over a year ago. At least that's how it works with MAME and presumably other Direct Input software.

And does this hold in regard to using duplicate devices using generic drivers?

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: controller ID numbers - are they assignable?
« Reply #6 on: May 10, 2012, 11:34:20 am »
I have a GPWiz, 2 Logitech Rumble pads, and 2 namco light guns plugged in to my system.  Although I never unplug them, they have been known to spontaneously renumber themselves.  The solution I have is to use JoyID to renumber the GPWiz and the game pads the way I want them.  In my case, the game pads always stay in the same order which is good since JoyID does not have any way to differentiate them in software.  I simply have an batch script to renumber the USB if things go wonky.