chrisemo Posted April 2, 2022 Share Posted April 2, 2022 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 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 2, 2022 Share Posted April 2, 2022 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&PID_0410" controller="MOUSECODE_1" /> <mapdevice device="VID_32BE&PID_1420\8&32888d80" controller="MOUSECODE_2" /> <mapdevice device="VID_32BE&PID_1420\8&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. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 2, 2022 Author Share Posted April 2, 2022 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. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 2, 2022 Share Posted April 2, 2022 1 minute ago, chrisemo said: the ids are different. The ID's can't change because they're tied to the hardware. Run "mame -v" again and check that it's showing that your Inputs are getting remapped. Or see what it says after Attempting to parse: remapo.cfg Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 2, 2022 Author Share Posted April 2, 2022 (edited) 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 April 2, 2022 by chrisemo Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 2, 2022 Share Posted April 2, 2022 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. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 3, 2022 Author Share Posted April 3, 2022 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 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 3, 2022 Share Posted April 3, 2022 Looks like only MOUSECODE_1 is getting remapped. Excellent start! Recheck the ID's for the other 2. Originally you showed them as [partial] "PID_1420\8", but the log is showing "PID_1420#8". Double check all the numbers and letters in the ID's and try changing the slash to a pound symbol. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 3, 2022 Author Share Posted April 3, 2022 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. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 3, 2022 Share Posted April 3, 2022 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. 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? Make note of the log for the 3 Input: Remapped lines when it's working. (which is what you have above) Completely exit MAME. Disconnect and reconnect your spinners. Start MAME. Compare the new log for the 3 Input: Remapped lines with the ones from step #1. They should be the same. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 3, 2022 Author Share Posted April 3, 2022 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?? Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 3, 2022 Share Posted April 3, 2022 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. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 4, 2022 Author Share Posted April 4, 2022 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. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 4, 2022 Share Posted April 4, 2022 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. Change the mouse ID's to the order you want to see in "mame.ini". Save and close. Start standalone MAME. Open Configure Options Select General Inputs Select Player 1 Controls Press the up arrow (a lot faster than scrolling down) You'll see Mouse X analog and Mouse Y analog Set those to the controller (spinner) you want as player one. Press Escape Now select Player 1 Controls and do the same thing for the other spinner (step 6, 7, 8, 9). Press Escape again (after pressing it like in step #9) 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. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 5, 2022 Author Share Posted April 5, 2022 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? Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 5, 2022 Share Posted April 5, 2022 55 minutes ago, chrisemo said: do you mean the remapo File? Yes. Sorry about that. Quote Link to comment Share on other sites More sharing options...
chrisemo Posted April 8, 2022 Author Share Posted April 8, 2022 No problem But the result is the same. After i follow your steps and i disconnect a spinner the id's are not the same Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.