MAME Trackball not working
-
@wepoo your fie looks ok. RetroPie is using whatever version of Advancemame you specify in runcommand. If you haven't specified the default, it's probably launching with .94.
Another thing to check is the MAME GUI inputs for "this game" analog, to see if it wants a trackball, dial, etc. if dial, you need to specify the device for that input.
I am wondering if you are simply editing the 1.4 config but launching with .94.
-
@caver01 another thing to check is to try using the AdvanceMAME mouse testing utility. I don't remember if it gets compiled or not, so you'll have to navigate to the bin directory where the emulator executable lives (I am away from my Pi, but I am thinking somewhere beneath
/opt/retropie/emulators/mame-advance
. )When you get to the bin directory look foradvm
. If it's there, type./advm -device_mouse raw
and move the trackball. You should see values change. That proves that advancemame can see the raw input. -
@caver01 Thanks so much for all your help. Lots of things to try that I wouldn't have known.
I've tried a few things (some of which you suggested).
Turns out the IPAC2 has Joystick maps. So long as it's plugged in the Joystick will dismiss any mouse input while a game is running. I unplugged the IPAC2 and am getting some okay control (still sorting it all out but I can play games).
Waiting on a firmware update form Ultimarc.com for the IPAC2 that will remove any Joystick mapping on the IPAC2.When I'm playing Sonic.zip my Logitech K440r wireless keyboard and trackpad registers Player 1 Trackball input and the Happ Track ball (through OptiWizz controller) is Player 2.
-
Interesting that the ipac is blocking like that. I have an early model ipac4 that works as a keyboard not a joystick. I expect that's what your firmware update will do.
-
@caver01 Yeh I remember once having an IPAC from around 2001 it was just a keyboard map. These new ones are fancy-pants!
Looks like I just have to change the polling and check some games that do multiplayer, just little stuff. But I've played some Marble Madness tonight on my half build Bartop Cabinet which is pretty exciting.
Turns out with advmame I was booting ADVMAME 0.94 so I had to edit:
/opt/retropie/configs/mame-advmame/emulators.cfg
to change the "default" to 1.4
I'm hoping this change will fix the issues with Joysticks dismissing mouse input. I tested it earlier but am away form the Retropie now to confirm what devices were plugged in. -
Now I have to spend a little time to find out what version of MAME might support Rotary Sticks and the appropriate sensitivity settings.
-
@wepoo I am very curious about the rotary sticks. What hardware are you using? Do they snap into positions, or are they free spinning?
-
@caver01
https://na.suzohapp.com/products/joysticks/50-5618-00
http://www.ultimarc.com/rotary.htmlYup very clicky. I think they have 12 positions and lock into each one. So playing Midnight Resistance, Heavy Barrel etc they feel just perfect as you aim. The stick spring is a bit heavy, plus you can feel the weight of the rotary mechanism underneath but they are very good overall. I just prefer a JLF balltop.
I'm trying to find / install a version of MAME that has the Positional Analogue option under Input [This Game] in Midnight Resistance. Otherwise the rotary control is only 80% good (skips or ignores 20% of rotary clicks). Sadly stuck for time but also stuck installing ir-mame2010 just boots into a RetroArch menu seemingly missing any Cores..?
-
@wepoo said in MAME Trackball not working:
I'm trying to find / install a version of MAME that has the Positional Analogue option under Input [This Game] in Midnight Resistance. Otherwise the rotary control is only 80% good (skips or ignores 20% of rotary clicks). Sadly stuck for time but also stuck installing ir-mame2010 just boots into a RetroArch menu seemingly missing any Cores..?
That's interesting. The interface simply sends "[" or "]" for rotation, right? Or is it also responsible for some kind of analog signal?
-
@caver01 Yes the rotary encoder sends P1: [] P2: /\. This works fine in windows notepad and cmdline. In MAME some of those inputs get ignored. I guess it uses an analogue mapping for rotary input.
Having a MAME version with:
TAB > Input(This Game) > Positional Analogue: NONE, Positional Analogue Dec: [, Positional Analogue Inc: ]
AND
TAB > Analogue Controls > Digital Speed: 0. Sensitivity: 100Gives perfect or near perfect response. So on MAME OS X on my macbook I get great rotary response. and gosh it's a fun reminisce.
Note for anyone later: Retropie has a UK keyboard and the P2 Right rotation mapping goes to a special key (£ or something MAME does't recognise). Rotary controls need the Linux keyboard changed to US standard 105 key (it's in the retropie Setup Script).
-
Looks like adv-mame 1.4 has rudimentary rotary control support. It's playable but not perfect. The Analogue Controls section needs tuning.
Around 10-12 Digital speed and about 100% Sensitivity.
Dunno what auto centre does.My Trackball was having issues with mouse polling. When I spun it too fast it would register the spin in the opposite way. I had to add "usbhid.mousepoll=1" to "/boot/cmdline.txt". To increase the poll rate.
Most people recommend mousepoll=2 but I was still getting backspin. As yet I haven't noticed a performance reduction at mousepoll=1. The back spin seems to be all gone.
I also had to plug the Trackball directly into the RetroPie USB. It was in a little USB hub but the USB hub speed wasn't enough
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.