Getting Trackball to work with MAME
-
@jvinga1 These log entries are consistent with what I saw and another user shared in the thread I linked above. I should update the example block in the wiki page so it is a closer/exact match.
This would lead me to make sure I have the core option enabled in
/opt/retropie/configs/all/retroarch-core-options.cfg
with the linemame2003-mouse_device = "mouse"
and add/adjust lines in my
/opt/retropie/configs/arcade/retroarch.cfg
input_player1_mouse_index = "0"
and if that doesn't work, try index 1.
Actually, I use per-game configs for this, as my player1 mouse varies depending on if it is a spinner/driving game or a trackball game. -
Well, I was feeling like it was getting close and this would do it, but no luck. First, the mame2003 line for retroarch-core-options.cfg was already in there.
I added the input line to retroarch.cfg, but still did not have luck when running Centipede or Marble Madness. I edited and changed the index from 0 to 1 with no effect.
Next, I thought I'd try an ROM specific setting. So I started the game and hit tab for the runcommand menu. From there I selected the option to edit the rom-specific retroarch config. The little editor opened to a blank file. I entered the in input_player1_mouse_index = "0", then ran the game. No luck. Edited again with index of 1 and still no luck.
Here are any lines from the log file that I thought might be involved in any way:
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/arcade/retroarch.cfg "/home/pi/RetroPie/roms/arcade/marble.zip" --verbose --appendconfig /dev/shm/retroarch.cfg'|'"/home/pi/RetroPie/roms/arcade/marble.zip.cfg" [INFO] RetroArch 1.6.7 (Git 8e8bdaa)
[INFO] [Config]: loading config from: /opt/retropie/configs/arcade/retroarch.cfg. [INFO] Config: appending config "/dev/shm/retroarch.cfg" [INFO] Config: appending config "/home/pi/RetroPie/roms/arcade/marble.zip.cfg" [INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so" [INFO] [overrides] no core-specific overrides found at /home/pi/.config/retroarch/config/MAME 2003/MAME 2003.cfg. [INFO] [overrides] no game-specific overrides found at /home/pi/.config/retroarch/config/MAME 2003/marble.cfg. [INFO] Shaders: preset directory: /home/pi/.config/retroarch/shaders/presets [INFO] Shaders: no game-specific preset found at /home/pi/.config/retroarch/shaders/presets/MAME 2003/marble.cgp. [INFO] Shaders: no game-specific preset found at /home/pi/.config/retroarch/shaders/presets/MAME 2003/marble.glslp. [INFO] Shaders: no core-specific preset found at /home/pi/.config/retroarch/shaders/presets/MAME 2003/MAME 2003.cgp. [INFO] Shaders: no core-specific preset found at /home/pi/.config/retroarch/shaders/presets/MAME 2003/MAME 2003.glslp.
and a bunch of lines like this:
[INFO] RetroPad, User 1, Button "B (bottom)" => "Button 1" [INFO] RetroPad, User 1, Button "Y (left)" => "Button 2" [INFO] RetroPad, User 1, Button "Select" => "Insert Coin" [INFO] RetroPad, User 1, Button "Start" => "Start" [INFO] RetroPad, User 1, Button "D-Pad Up" => "Joystick Up" [INFO] RetroPad, User 1, Button "D-Pad Down" => "Joystick Down" [INFO] RetroPad, User 1, Button "D-Pad Left" => "Joystick Left" [INFO] RetroPad, User 1, Button "D-Pad Right" => "Joystick Right" [INFO] RetroPad, User 1, Button "A (right)" => "Button 4" [INFO] RetroPad, User 1, Button "X (up)" => "Button 3"
[INFO] [udev] Adding device /dev/input/event3 as type ID_INPUT_KEYBOARD. [INFO] [udev] Adding device /dev/input/event0 as type ID_INPUT_KEYBOARD. [INFO] [udev] Adding device /dev/input/event1 as type ID_INPUT_MOUSE. [INFO] [udev] Adding device /dev/input/mouse0 as type ID_INPUT_MOUSE. [INFO] [udev] Adding device /dev/input/event2 as type ID_INPUT_MOUSE. [INFO] [udev] Adding device /dev/input/mouse1 as type ID_INPUT_MOUSE. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] Saved core options file to "/opt/retropie/configs/all/retroarch-core-options.cfg"
Any other ideas before attempting to jump to AdvanceMAME? I hate to jump ship and figure out how to go install and configure a different emulator when the games all run well under this one.
-
Okay, installing AdvancedMame was pretty easy - found it on the retropie menu and installed 1.4.
I never could get the AdvancedMAME mouse testing command to run so I just moved on to editing the config files, all as described in the wiki (https://github.com/RetroPie/RetroPie-Setup/wiki/Spinners,-Trackballs,-Lightguns,-and-other-Mouse-Devices).
I left the Marble Madness ROM in the Arcade folder, but went to the runcommand menu when starting it and changed the emulator for that ROM to AdvancedMame. It works! I changed Centipede to use AdvancedMAME in the same way it it works too, so I'm in business.
Thanks so much for your help! Too bad it would not work under Mame2003, but that's okay since this works for the two games I wanted working the most. I might go try a driving game now as suggested in the Wiki. Thanks again.
-
@jvinga1 I am torn. On the one hand, congrats for getting the AdvanceMAME config working. It can actually be a little harder! But on the other hand, I really think there is light at the end of the 2003 tunnel. I am actually pretty excited about the recent analog developments in this version of MAME because I like the RetoArch shaders so much more than what I can get out of AdvanceMAME. Still, I am glad you will at least have a working trackball. Sorry we could not get it sorted in the other one.
-
@jvinga1 The only thing I can think to double check is if maybe you have conflicting entries in the cascade of retroarch configs. For example, if you specify
mame2003-mouse_device = "mouse"
orinput_player1_mouse_index = "X"
in more than one location, the setting will be overridden the closer the config gets to the ROM. In other words, it will load core options/opt/retropie/configs/all/retroarch-core-options.cfg
but then it will append the/opt/retropie/configs/all/retroarch.cfg
and any repeat here will override, followed by arcade and finally rom specific configs. This is handy, especially when using a default and multiple emulator cores, but confusing if troubleshooting after you may have added or changed a setting in one of them. -
I've been following along here, trying to get my system going, thanks for all of the notes.
I finally got it going with 2003 - some tips:
Instead of using of using the trackball to test the input, I was just using the mouse, seemed to make things a little easier.
What finally got it working was something I didn't see listed here, in the
- \retropie\configs\all
directory, in the
- retroarch-core-options.cfg
file, I had to enable this option, then it started working immediately.
mame_current_mouse_enable = "enabled"
Thanks again for the notes, hope this helps someone!
-
@ajacks504 said in Getting Trackball to work with MAME:
I had to enable this option, then it started working immediately.
mame_current_mouse_enable = "enabled"Interesting. I am not familiar with that option, but I am glad it worked for you. Where did you see this suggested? Perhaps we need to include that option in the wiki.
-
I had same results as jvinga1, had both of these options set:
mame2003-mouse_device = "mouse"
input_player1_mouse_index = "0"and I was sure about my index, so i just started searching anything with a mame in it, and a mouse setting, if it was disabled, I enabled it, seemed to work for me.
-
@ajacks504 This worked for me! I didn't have any trouble getting my trackball to be recognized as soon as I plugged it in, but couldn't get MAME to see it as an input device. I tried lots of changes to various config files with no luck. As soon as I enabled this option, my trackball started working.
This post is the only place I found in the internet that mentioned this setting for the retroarch-core-options.cfg file. Not sure how you figured out that option was even available but I'm glad you did. Thanks! -
@ajacks504 Hello ajacks504. Yes, I know this reply is almost 3 years old. I am having the same issue and just changed to "enabled" wherever it said "disabled" under mame. The next question is I do not have the line
input_player1_mouse_index = "0" underneath the device =" mouse line" anywhere
Is this something I need to add? I'm sorry I just don't understand all this. I'm not very computer savvy when changing the config stuff. I don't have a trackball yet but I have a spinner right now and I cannot get it to work or be recognized when playing tron. Thank you. hopefully this msg finds you
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.