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: mouse 1, 2, 3? Mame keeps changing  (Read 1647 times)

0 Members and 1 Guest are viewing this topic.

boboli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:March 22, 2013, 04:03:29 pm
mouse 1, 2, 3? Mame keeps changing
« on: February 05, 2007, 11:49:25 am »
Does anyone know why my trackball Mouse # keeps changing on re-boot (and how I can fix it)? It screws up Mame mapping so that I have to re-map each time I reboot.

Alternately, is there any way to configure Mame keycodes in a file, rather than having to go into Tab menu? That way, I could map trackball to Mouse 1, 2, 3 and 4, just in case. I only have one trackball on my control panel.

Thanks

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: mouse 1, 2, 3? Mame keeps changing
« Reply #1 on: February 05, 2007, 04:22:05 pm »
Does anyone know why my trackball Mouse # keeps changing on re-boot (and how I can fix it)? It screws up Mame mapping so that I have to re-map each time I reboot.

This is due to windows, USB, and timing; windows numbers them in the order the mice "check in" at boot up, which, as in your case, can change.  FWIW you can see this with USB joysticks, also, except usually only if they're the same.  Since mame numbers them in the order windows "gives" them, mame can't do much.  :(

Quote
Alternately, is there any way to configure Mame keycodes in a file, rather than having to go into Tab menu? That way, I could map trackball to Mouse 1, 2, 3 and 4, just in case. I only have one trackball on my control panel.

Yes.  Use ctrlr files.  The easiest way to do this remap using the normal Tab "Input (general)" method and exit mame.  Then copy the cfg/default.cfg file to the ctrlr folder.  Make four copies, I'll call them mouse1.cfg, mouse2.cfg, etc in this example.  Open the files in any text editor and change all the '#' you mapped to in MOUSECODE_#_ANALOG_X to the correct number and save.  Mame does not edit these files, so you don't need to worry about mame overwriting them.  Select which one you use with the -ctrlr xxxx option.  More details at http://www.mameworld.net/easyemu/mameguide/mamecontrolini.htm
Robin
Knowledge is Power

boboli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:March 22, 2013, 04:03:29 pm
Re: mouse 1, 2, 3? Mame keeps changing
« Reply #2 on: February 05, 2007, 05:15:44 pm »
thanks for the tips. I'll be trying this out tonight.