Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: tony.silveira on May 09, 2012, 03:16:34 pm

Title: controller ID numbers - are they assignable?
Post by: tony.silveira 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!
Title: Re: controller ID numbers - are they assignable?
Post by: Hoopz on May 09, 2012, 03:41:22 pm
Try this thread.

http://forum.arcadecontrols.com/index.php?topic=108767.msg1154628#msg1154628 (http://forum.arcadecontrols.com/index.php?topic=108767.msg1154628#msg1154628)
Title: Re: controller ID numbers - are they assignable?
Post by: Vigo 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 (http://www.wingmanteam.com/latest_software/gadgets.htm) 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.

Title: Re: controller ID numbers - are they assignable?
Post by: Vigo 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.
Title: Re: controller ID numbers - are they assignable?
Post by: nick3092 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 (http://www.wingmanteam.com/latest_software/gadgets.htm) 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.
Title: Re: controller ID numbers - are they assignable?
Post by: Vigo 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?
Title: Re: controller ID numbers - are they assignable?
Post by: bkenobi 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.