| Main > Software Forum |
| MAME 104u5 out - adds multiple mice |
| << < (15/15) |
| Grasshopper:
I have to confess I didn't fully understand all the technical stuff earlier in this thread, and maybe what I'm about to suggest isn't even possible, but FWIW this is how I would approach the handling of USB devices in MAME. First of all I'd provide a command line switch which would simply list all the USB HID devices connected to the computer, the ports they're connected to, their device IDs and any other useful info. After a bit of plugging and unplugging this switch would enable all the device IDs, and the numbering of the USB ports to be determined. Then armed with this info the user could add commands such as the following to the MAME configuration file. Joystick1 = usb_device_whose_id_is(n) Joystick2 = usb_device_connected_to_port(m) etc. Obviously the actual syntax would be a bit less clumsy. The mapping process would normally only take place once when MAME was first run. However, there would be an option within the tab menu to enable the devices to be remapped if you wanted to plug and unplug things during a game. |
| Santoro:
It's nice to see Mamedev participation here even if it's to defend against accusations. Derrick, thanks to you are the rest of the devs. Most of us appreciate your work incredibly. |
| Smog:
--- Quote --- When I contacted Act Labs, their response was 'great, how can we help?' EMS response was 'that's great, good luck with that.' --- End quote --- LOL :D Derrick .. I hate to say "I told you" :D However, I've realized that I've never thank you for your work on the lightgun topic, and probably I'll never do much as you owe ... If there is anything I can do for you (I guess you solved the issue, with the location name ... ) I'll be happy to help as soon as I finish to set up my new PC. |
| Derrick Renaud:
--- Quote from: Smog on March 26, 2006, 10:03:40 am --- --- Quote --- When I contacted Act Labs, their response was 'great, how can we help?' EMS response was 'that's great, good luck with that.' --- End quote --- LOL :D Derrick .. I hate to say "I told you" :D However, I've realized that I've never thank you for your work on the lightgun topic, and probably I'll never do much as you owe ... If there is anything I can do for you (I guess you solved the issue, with the location name ... ) I'll be happy to help as soon as I finish to set up my new PC. --- End quote --- I sent you an e-mail last night to the contact name on your smogdragon site. As for the LocationName, it is not really solved, but I don't think it is something you can do anything about. When the gun is first plugged in, the parent USB device sends a name from the device to be used by the parent HID USB driver. That is the LocationName it uses. And it seems that EMS used a name of "USB Device". In XP device manager, just look at the HID devices, on the general info page, near the top is a field called Location:. That is the field that the USB device supplies to the driver. use the MAME -verbose command to see mouse names. In XP, I have to search the registry for the same info that DX usually supplies. D. |
| Navigation |
| Message Index |
| Previous page |