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: Mame Multiple Mice Problem  (Read 10485 times)

0 Members and 1 Guest are viewing this topic.

animatorJustin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 59
  • Last login:January 14, 2023, 11:09:32 pm
Mame Multiple Mice Problem
« on: February 23, 2011, 08:33:41 am »
Hey all, I am snagged on a new problem while implementing new features to my cab. I have changed Mame back to DirectImput instead of raw imput because I have swappable a USB Wheel and two Wireless Xbox controllers and found this works great, the problem is now my trackball, spinner, and Aimtraks all read as mouse 1 or gun 1. I do have Multiple Mice set to on in the ini file and aimtraks set to different Ids. Is there a way to keep it DirectImput but get Multiple mice?

I never thought adding controllers would be such a Headache :banghead:, but it gets the wife to play the games more often  ::) 

Cananas

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 299
  • Last login:August 27, 2017, 07:39:03 am
  • and the seventh day... PacMan was created
Re: Mame Multiple Mice Problem
« Reply #1 on: February 23, 2011, 10:55:26 am »
No. DirectInput is not able to manage multiple mice like multiple devices. This is the reason why the raw input system was impleted to managed the mice.

I would suggest back to the regular mame compilation and try to use the ControllerRemap utility:
http://forum.arcadecontrols.com/index.php?topic=108767.msg1154628#msg1154628

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Mame Multiple Mice Problem
« Reply #2 on: February 25, 2011, 04:34:35 pm »

It's as easy (and as hard) as this).  In your "ini" folder you can make a ini file for any game and set individual mame settings for said game just like in your mame.ini (only include the ones you want to change).  Only enable multi-mice on games that will need them. 

I will say this though, your problem sounds unlikely.  You do know that even with multi-mice turned on mame defaults mice-based inputs to use any and all mice and not just a specific one.  In other words you have to remap the game, via ctrlr files to use "MOUSE_1" and not just "MOUSE".  "MOUSE" or "JOYSTICK" refer to any and all mice and joysticks.... "MOUSE_1" or ect... refers to a specific device.  You'll notice in the inputs menu for a lightgun game, even with "-lightgun" on that the inputs for movement default to "Gun_1" OR "Mouse X". The "gun_1" is fine, but "mouse x" refers to ALL mice. 

Solution:

Scroll down to the section of your mame.ini that reads "RE INPUT AUTOMATIC ENABLE OPTIONS"

Now make the following adjustments:  (not sure about your particular setup, so I'll ignore things like pedals and paddles)

paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               mouse
trackball_device          mouse
lightgun_device           lightgun
positional_device         joystick
mouse_device              mouse


Now with the exception of maybe the joystick flag, NEVER turn on "mouse" or "lightgun" via ini or command line.... the setup I just gave you will automatically switch on and off those features depending upon the game ensuring that they don't interfere with each other.  You can leave multi-mouse on, just make sure "mouse" is off.  That should fix most of your issues.