Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Thenasty on January 06, 2005, 07:22:59 pm
-
http://advancemame.sourceforge.net/
-
One of the interesting things in this release:
The USB devices in Linux now have always the same order in the input_map[] specifications
What has been done here is that the devices are now sorted by manufacturer and model number first and the order they are recognized second. This is the fix for those of you who hack multiple usb game pads but they flip flop order on boot. Of course the catch is you don't want to use the exact same game pads....need to use different models. I submitted this feature request because I have three usb mice (optipac and tornado spinner) and one time they changed order. Although they haven't changed order again since I plugged them in to different sections of the motherboard (I have on set of two and on set of four ports) I thought it would still be a great feature for those using a hub or with only one set of ports. ***haven't had a chance to test it out yet, I'll report back on it later***
-
whammoed: what kernel are you using? For me in 2.6, my USB devices are detected by their entry point on the bus.
For instance, running 2.6.10, my dmesg output says:
usb 2-1: new low speed USB device using ohci_hcd and address 3
input: USB HID v1.00 Gamepad [Mega World] on usb-0000:00:02.0-1
usb 2-2: new low speed USB device using ohci_hcd and address 4
input: USB HID v1.00 Gamepad [Mega World] on usb-0000:00:02.0-2
These never change. I use them for ZSNES mostly, and they always work in the correct order, even after reboot.
[EDIT] re-reading your post I see you've moved their location. That's why they change. You need to always keep them in the same location. Adding a hub doesn't hurt, as the usb identifier just reports a different location.
eg: here's me adding the same two gamepads above, but this time on a hub:
usb 2-1.1: new low speed USB device using ohci_hcd and address 6
input: USB HID v1.00 Gamepad [Mega World] on usb-0000:00:02.0-1.1
usb 2-1.3: new low speed USB device using ohci_hcd and address 7
input: USB HID v1.00 Gamepad [Mega World] on usb-0000:00:02.0-1.3
Notice the extra digits and at the end of the usb identifier as it becomes aware of a serial hub.
If you develop a MAME setup with USB inputs under linux, you need to do all of your configuration with the devices in the same ports as the final cab will be.
-
Using kernel 2.6.5
I only changed the position after they switched order to try and rectify this. Like I said it only happened once so I am really starting to think it was just a fluke. I thought they would never change either...but they did, even if it was only once. Oh well, its still nice to know I will be able to change the way things are plugged in and still have my advmame.rc be valid.
thanks for the info, I'm still new to linux so a lot of it is still magic to me ;)