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: Windows 7 USB devices move around in Mame. Controls affected.  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

Pitou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:July 01, 2025, 12:33:17 pm
Hello,

I have multiples USB devices to my Win7 machine. I own an A-PAC, Optipac and some other USB devices.

Very often the USB devices move around. I mean that they change ID/number.

For example in MAME, one day the Trackball can be Mouse 3X and Mouse 3Y and the day after it become, Mouse 2X and Mouse 2Y.

I sometime have to connect a USB keyboard or real mouse for debugging and other stuff.

It's very annoying to have to remap the controls each and every time.

Is there a way to have USB stability in Win7?

Thank you.

Pitou!

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9669
  • Last login:Today at 01:05:44 pm
  • Designated spam hunter
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #1 on: May 08, 2016, 05:52:51 pm »
You may want to check out Drventure's ControllerRemap for Mame.


Scott

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 983
  • Last login:March 21, 2025, 06:36:05 am
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #2 on: May 12, 2016, 06:06:09 pm »
Or if you're not a fan of manually editing xml files, you can use this here:

http://forum.arcadecontrols.com/index.php/topic,145636.0.html


Pitou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:July 01, 2025, 12:33:17 pm
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #3 on: May 13, 2016, 11:08:13 am »
Great tool! Thanks very much!

However, I'm not sure I understand clearly the purpose of it. What I'm looking for actually is a tool to generate the default.cfg with the keys or usb devices (direction x,y,z) I choose.

Is it possible to do this with it?

Thank you.

Pitou!

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 983
  • Last login:March 21, 2025, 06:36:05 am
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #4 on: May 13, 2016, 11:23:36 am »
I hate to say it, but you need to do your homework. Read all the documentation in ControllerRemap which will explain how it works, then you can use ControllerRemapGUI ontop to make the process of creating a ctrl file easier.

Good luck.

Pitou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:July 01, 2025, 12:33:17 pm
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #5 on: May 13, 2016, 01:41:30 pm »
Your advice is justified! :)

I just read all the doc this morning and understand what it does. Unfortunately, this is not exactly what I needed as my cab never change. It's just that windows do strange things or mame that writes some changes in the default.cfg.

I still need to remap everything manually anyway. I'll stick to my previous habit and just do a backup of the default.cfg

Thanks very much for your help and suggestions!

Pitou!
« Last Edit: May 13, 2016, 01:43:02 pm by Pitou »

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 983
  • Last login:March 21, 2025, 06:36:05 am
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #6 on: May 13, 2016, 04:51:34 pm »
Welcome!

Pitou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:July 01, 2025, 12:33:17 pm
Re: Windows 7 USB devices move around in Mame. Controls affected.
« Reply #7 on: May 21, 2016, 07:56:32 am »
Just a quick update of what I did. Again, since my USB devices stay connected, I just remapped the controls, took the default.cfg, renamed it Arcade_ctrlr.cfg and copied it in the ctrlr dir.

I then specified Arcade_ctrlr in mame.ini on the "ctrlr" line.

Works like a charm.

Pitou!