lr-mame2010 lightgun instructions #1
StormedBubbles
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The master branch of this fork of the lr-mame2010 core allows lightgun usage (i.e., Sinden lightguns) for up to 4 players. The method of achieving this is credited to Mr. Lightgun in his lr-mame2016 fork. I also added the same features to my fork of lr-mame2015.
I picked lr-mame2010 and lr-mame2015 to focus on because there are some lightgun games that work best in these cores within the libretro framework (on an overclocked Raspberry Pi 4B):
2010:
2015:
Here is the way it works:
JOYCODE_1_RXAXIS
joystick_deadzone 0
andjoystick_saturation 1
in order to get fluid and accurate gun trackingThis is a roundabout way of getting multiple mice to work in lr-mame2010, so only one MAME input's worth of mouse buttons is recognized. You will have to map triggers and other buttons for other players to non-mouse buttons. The code by Mr. Lightgun for lr-mame2016 was set up as such specifically for Sinden lightguns, which allow the user to remap buttons as desired.
As part of getting all of this to work, I had to add analog controls for 4 players. If that is useful, I can submit a pull request upstream to add analog controls. The lightgun portions are probably best left here since they rely on stealing an analog stick from each controller. I suppose these same principles can be used to add support for multiple trackballs & spinners in the same way that the lightgun inputs were added. I could create a branch of my fork specific to mouse inputs for multiple mice, if anyone would find that useful.
I am an amateur with coding, but I hope that this allows users on Raspberry Pi and other, similar computers to enjoy games they otherwise thought they couldn't play properly 😃
Beta Was this translation helpful? Give feedback.
All reactions