Jump to content
LaunchBox Community Forums

Mame stable Mouse ID


chrisemo

Recommended Posts

Hello,

I tried a lot, but im still not able to fix the mouse is in Mame.

i use a Trackball and 2 Spinners

My remap file is as follows, it is a .cfg File  and located in the mame/ctrlr  Folder.

<mameconfig version="10">
<system name="default">
<input>
<mapdevice device="PID_0410" controller="MOUSECODE_1" />
<mapdevice device="32888d80" controller="MOUSECODE_2" />
<mapdevice device="16ca0db7" controller="MOUSECODE_3" />
</input>
</system>
</mameconfig>

 

I use for mouse 2 and 3 not the "PID_..." because the 2 spinners have the same id except of this Numbers.

Spinner 1 id:    HID\VID_32BE&PID_1420\8&16ca0db7&0&0000

Spinner 2 id:  HID\VID_32BE&PID_1420\8&32888d80&0&0000

Trackball Id:  HID\VID_D209&PID_0410&MI_01&Col03\7&2ee0ae83&0&0002

 

In the ini Fileoks a follows      // remapo is the name of the File

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     remapo
mouse                     1
joystick                  1
lightgun                  1
multikeyboard             0
multimouse                1
steadykey                 0
ui_active                 0
offscreen_reload          1
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85
natural                   0
joystick_contradictory    0
coin_impulse              0

 

Maybe someone have an Idea what im doing wrong.

 

Thx

 

 

 

 

 

 

Link to comment
Share on other sites

35 minutes ago, chrisemo said:

<mapdevice device="PID_0410" controller="MOUSECODE_1" />
<mapdevice device="32888d80" controller="MOUSECODE_2" />
<mapdevice device="16ca0db7" controller="MOUSECODE_3" />

Try, from "device=", starting with "VID", through the PID # for MOUSECODE_1.  And for the other 2, continue to the next ampersand (&).

You'll need to escape the ampersands by adding "amp;"  [A M P semicolon] after them.

<mapdevice device="VID_D209&amp;PID_0410" controller="MOUSECODE_1" />
<mapdevice device="VID_32BE&amp;PID_1420\8&amp;32888d80" controller="MOUSECODE_2" />
<mapdevice device="VID_32BE&amp;PID_1420\8&amp;16ca0db7" controller="MOUSECODE_3" />

I know MAME says you can use just a substring of the ID (like how you had it).  I've never tested it that way.  I've always just started at VID.  But (in my setups) I've also never had to go past the PID #.   So this is kind of a guess.  But hopefully a 'good' guess. ;) 

Link to comment
Share on other sites

Thx for your help, but it did not work.

i copied your "bad" guess :)   try my favorite game (Gun Fight)  and afterwards  disconnect and connect 1 spinner start it again, and the ids are different.

Maybe someone has another Idea for this Problem.

Link to comment
Share on other sites

i make now 2 loggings

1st:

Input: Adding mouse #0: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2510#8&2887b92&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #1: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #2: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&32888d80&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #3: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&16ca0db7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #0: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2510#8&2887b92&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #1: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #2: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&32888d80&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #3: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&16ca0db7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})

Then i disconnect the normal Mouse and connect it again

 

2nd:

Input: Adding keyboard #0: HID Keyboard Device (device id: \\?\HID#VID_D209&PID_0410&MI_00#7&67600ba&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding keyboard #1: HID Keyboard Device (device id: \\?\HID#VID_1A2C&PID_4094&MI_00#9&2548769b&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #0: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #1: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&32888d80&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #2: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&16ca0db7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #3: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2510#8&2887b92&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #0: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #1: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&32888d80&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #2: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&16ca0db7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #3: HID-compliant mouse (device id: \\?\HID#VID_093A&PID_2510#8&2887b92&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})

 

The external mouse change from # 0 to # 4   and all the others get 1 number up

And also ingame in the controll menu, first it was mouse#3  X   and then after restart its not working until i redefine, and then it is mouse#2 X

Edited by chrisemo
Link to comment
Share on other sites

Below "Input: Adding..." in the log(s) you should see

1 hour ago, JoeViking245 said:

Attempting to parse: remapo.cfg

Does it show that at all?  If not, it's not even looking at/for your remapo.cfg file.

 

MAME will add the inputs ("Input: Adding...") as it sees them (the order that Windows tells it they're in).  And that part doesn't really matter because after that, MAME will parse your remapo.cfg to remap them all.  Well, at least the ones you told it to in the cfg file.   But if the log isn't even indicating its "Attempting to parse", then your issue is somewhere else.

Link to comment
Share on other sites

OK, thanks for your explanation.

I found this in the end of the file:

 

Checking for icons in directory icons
No candidate icons found for machines
Attempting to parse: remapo.cfg
Applying default configuration from controller configuration file remapo.cfg
Input: Remapped mouse #0: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Attempting to parse: default.cfg
Attempting to parse: ___empty.cfg

 

 

 

 

  • Like 1
Link to comment
Share on other sites

you were right.

In the german device manager it shows /   and in mame it is #.

 

Here is the log with #

Starting No Driver Loaded ':'
  (missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting No Driver Loaded ':'
Checking for icons in directory icons
No candidate icons found for machines
Attempting to parse: remapo.cfg
Applying default configuration from controller configuration file remapo.cfg
Input: Remapped mouse #2: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&16ca0db7&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Remapped mouse #1: HID-compliant mouse (device id: \\?\HID#VID_32BE&PID_1420#8&32888d80&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Remapped mouse #0: HID-compliant mouse (device id: \\?\HID#VID_D209&PID_0410&MI_01&Col03#7&2ee0ae83&0&0002#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Attempting to parse: default.cfg
Attempting to parse: ___empty.cfg

 

But ingame it is still the same Problem.

I tried a game and it works.

Afterwards i close the game, disconnect and connect the spinner again and it not works until i go to the input Settings in mame and bind it again.

 

 

 

Link to comment
Share on other sites

1 hour ago, chrisemo said:

I tried a game and it works.

 

21 hours ago, JoeViking245 said:

So this is kind of a guess.  But hopefully a 'good' guess. ;) 

:D

 

1 hour ago, chrisemo said:

Afterwards i close the game, disconnect and connect the spinner again and it not works until i go to the input Settings in mame and bind it again.

Do you have MAME closed when you disconnect and reconnect the spinner(s)?  And then [re]start MAME?  Or are you doing that while MAME (not the game you loaded) is still running?

  1. Make note of the log for the 3 Input: Remapped lines when it's working. (which is what you have above)
  2. Completely exit MAME.
  3. Disconnect and reconnect your spinners.
  4. Start MAME.
  5. Compare the new log for the 3 Input: Remapped lines with the ones from step #1.

They should be the same.

Link to comment
Share on other sites

the Logs are the same before and after the reconnecting for the 3 input devices

I play the game with Launchbox, so Mame should be fully closed.

In the Screenshot you see that is mouse 1 for P1 and mouse 3 for P2.

I dont know, but should it be mouse 2 and mouse 3 ??? according to the inputmap??

 

grafik.thumb.png.691ee88514b891ce23ea073637be955c.png

Link to comment
Share on other sites

46 minutes ago, chrisemo said:

the Logs are the same before and after the reconnecting for the 3 input devices

Excellent!

46 minutes ago, chrisemo said:

In the Screenshot you see that is mouse 1 for P1 and mouse 3 for P2.

I dont know, but should it be mouse 2 and mouse 3 ??? according to the inputmap??

I have no idea.  Are your spinners working accordingly for player 1 and player 2?

With all this messing around, you may want to go in the /cfg/ folder where you have MAME installed and delete "gunfight.cfg".  Then continuing troubleshooting since we now know that the spinners are [for sure] being remapped.

Link to comment
Share on other sites

Hello again,

Yes the spinners working correct for Player 1 and 2.

I delete the .cfg File for Gunfight and tried it again.

Also i tried to change the mouse id in Mame  0:spinner 1,     1:Trackball,   2:Spinner 2

It is the same result. In the Input config the working ones are Mouse 1 and Mouse 3.

What i recogniced is that, after a restart, if all is connected, The spinner working again as Number 1 and 3 (even if i disconnected before and they act as 2 and 4).

I think it is not perfect, but i can live with that if they working with the same mouse Id after a restart.

Thx for your help, and maybe this Thread can also help some other people.

Ps,:

If you have another Idea for that, for sure i will try.

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

1 hour ago, chrisemo said:

If you have another Idea for that, for sure i will try.

My 1st thought is if it's working, leave it be. lol  But if it's really bothering you, you could try (here I go 'guessing' again ;) ) to force them to 1, 2, 3 in the General Inputs section. 

  1. Change the mouse ID's to the order you want to see in "mame.ini". Save and close.
  2. Start standalone MAME.
  3. Open Configure Options
  4. Select General Inputs
  5. Select Player 1 Controls
  6. Press the up arrow (a lot faster than scrolling down)
  7. You'll see Mouse X analog and Mouse Y analog
  8. Set those to the controller (spinner) you want as player one.
  9. Press Escape
  10. Now select Player 1 Controls and do the same thing for the other spinner (step 6, 7, 8, 9).
  11. Press Escape again (after pressing it like in step #9)
  12. Select Save Configuration!!!!!!!!!!

Exit MAME.  You may want/need to delete the games cfg file again (another 'fresh start').  Play your game and see what happens.

 

Link to comment
Share on other sites

Hello,

I will try this, but i am not sure what you mean with

1. Change the mouse ID's to the order you want to see in "mame.ini". Save and close.

 

Can i change the mouse Id also in the mame.ini File or do you mean the remapo File?

And if you mean the mame.ini. How do i do this?

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...