Configure analog controls in Mame?
-
@rsn8887 which mame? please fill out https://retropie.org.uk/forum/topic/3/read-this-first
presuming lr-mame*, i'm not entirely sure if libretro understands analog triggers, however it does understand sticks. with mame2003 if you have bound your left/right analog sticks correctly during https://retropie.org.uk/docs/First-Installation/#configure-controllers, your left stick should control steering, without any further configuration in RGUI or TAB menu.
i did hookup the analog accelerator internally in 2003 but i have a feeling it never worked, but one step at a time.
-
@rsn8887 ok I didn’t have it setup with triggers but it was mapped to the XBOX360 A button by default.
I use lr-mame2003 and had to make the following changes to map it to the triggers.
- Launch Out Run
- Press “Tab” on your keyboard
- Click on “Input (this game)”
- Select “P1 Button 2” press Enter
- Press the Left Trigger
- Select “P1 Button 1” press Enter
- Press the Right Trigger
8 Press Tab to exit back to the game.
Right Trigger should now be Accelerator and Left Trigger will be Brake.
Make sure the controls are correct and then exit your game to save the settings.
-
I think that mame2003 is ripe to have some attention/effort put into analog controls . I've been considering making a github issue about this -- along with another for fully implementing the libretro lightgun API -- but there has been plenty of other work and conversation going about controls.
That said this would be a good time as any to start figuring out where improvements are needed for analog control support. You may be tired of hearing me say things like this but: "I don't really play any analog control games myself." I will need a little time to get oriented on analog controls before I can help with new code :eek:
-
@dankcushions said in Configure analog controls in Mame?:
presuming lr-mame*, i'm not entirely sure if libretro understands analog triggers, however it does understand sticks. with mame2003 if you have bound your left/right analog sticks correctly during https://retropie.org.uk/docs/First-Installation/#configure-controllers, your left stick should control steering, without any further configuration in RGUI or TAB menu.
Some improvements to RetroArch linux trigger support may be in the works: https://github.com/libretro/RetroArch/issues/6920
-
Thank you for all the replies. Still I don’t have analog gas on my analog trigger. So I guess it is currently not possible to do this with libretro mame-2003.
Maybe in AdvanceMAME? But so far all I get there is digital triggers again.
Also is there a way around the problem I mentioned that the trigger press registers as a button and an axis?
-
It may need a little bit of code in mame2003-plus to get at least basic support added -- it's hard to believe but maybe no one has ever mapped an analog gas pedal game with that codebase before. It turns out I even created an issue ticked about this myself one time: https://github.com/libretro/mame2003-libretro/issues/317
It may be days or weeks before something is done for mame2003-plus but am pretty sure something can be done.
-
@markwkidd said in Configure analog controls in Mame?:
It may need a little bit of code in mame2003-plus to get at least basic support added -- it's hard to believe but maybe no one has ever mapped an analog gas pedal game with that codebase before.
i'm pretty much the only one that has done any work on mame2003's inputs (or much else) until you, so it's not that hard to believe. there were no analog inputs at all before i mapped them. you can't have been following libretro cores very closely if you think they are typically a hive of activity...
anyways, i DID experiment with mapping the Z axis (it's trivial), but it didn't work in outrun for whatever reason. this is all likely in a PR/issue somewhere.
-
The only progress so far on this issue is that I have donated a few dollars to start a bounty for full analog controls support: https://www.bountysource.com/issues/64777052-implement-analog-retropad-controls
-
Outrun is mapped to a button not a pedal in the driver youll need to change it there. Thats not the only problem though. I have done some chnges to the analog in my own branch to stop it stealing digital controls ( If someone using a snes pad) as the anolog as is will make any game unplayable if you have no analog stick.
If you want to see the z-axsis is working load up ivon iron mans super offroad and use the right stick to accelerate
@dankcushions https://github.com/grant2258/mame2003-plus-libretro/commit/cfdb02a7edfc7085c2ee9984ec18fac69b97e6b9
edit enabled analog controls in the driver the inputs do work but the driver needs fixed up the hi/low is tied to the acceration mapping
-
I fixed the digital controls working in mame2003-plus as the analog already works for the pedal its just it takes over this is a courtesy for you mr @dankcushions in case you want to add it to mame2003.
-
woot!
-
mark I will look into adding mapping analog controls into mame2003-plus properly when I get the time. It doesn't look that bad to do its just setup a little differently from normal buttons nothing major though
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.