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: USB Joystick confusion in MAME.  (Read 2343 times)

0 Members and 1 Guest are viewing this topic.

anissem

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:September 19, 2011, 01:02:49 pm
USB Joystick confusion in MAME.
« on: September 16, 2011, 08:51:06 pm »
I've recently added USB PC NES & SNES controllers to my MAME cabinet and now my USB joystick and buttons no longer control MAME. It appears that MAME is only paying attention to 'JOYSTICK 0' & 'JOYSTICK 1' for input. Even though I've setup the config file to point towards the proper numbers as now they've all shifted with the new controllers... Is there a way to force my USB joysticks & buttons to be 'JOYSTICK 0' & 'JOYSTICK 1'. Right now I can only fix it by removing the new USB controllers from the mix as windows then reassigns them as 0 & 1.

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: USB Joystick confusion in MAME.
« Reply #1 on: September 16, 2011, 10:07:13 pm »
You're probably suffering from the "Windows USB device remapping" problem

Mame refers to USB devices specifically by their enumeration order, so if you install other devices, they can all shift around, when means Mame won't refer to the proper devices anymore, and you'll have to reconfigure.

If you install all your devices, then config mame and never add or remove (or relocate) devices, that's all you need to do.

If you plan on pluging and unplugging devices often, though, you might want to take a look at my ControllerRemap utility (the link is in my sig). It allows you to setup the mame config file such that things can be remapped properly when you start mame, no matter where the devices currently enumerate.

animatorJustin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:January 14, 2023, 11:09:32 pm
Re: USB Joystick confusion in MAME.
« Reply #2 on: September 16, 2011, 11:50:32 pm »
+1 to controller remap. Great tool to help with wireless controlers also.

anissem

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:September 19, 2011, 01:02:49 pm
Re: USB Joystick confusion in MAME.
« Reply #3 on: September 17, 2011, 02:13:59 pm »
Thanks Guys!