Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiimote Lightgun support for MAME #21

Open
elsonrodriguez opened this issue Jan 9, 2016 · 0 comments
Open

Wiimote Lightgun support for MAME #21

elsonrodriguez opened this issue Jan 9, 2016 · 0 comments

Comments

@elsonrodriguez
Copy link
Contributor

I followed this guide to enable Wiimotes as a lightgun for Mame:

http://blog.novaslp.net/post/97113634233/wiimotes-as-lightguns-in-mame-on-linux

The biggest hurdle was that I needed to compile Mame with NO_USE_XINPUT = 0

Aside from that, it works great. Light gun games require the use of a cursor unless the game has a really good calibration routine. Honestly though it's best when you just shoot from the hip.

My configuration is in a jumbled mess here: https://gist.github.com/elsonrodriguez/de9ad8dad7e1f672e2bd

Key points:

  • wminput's Joystick functionality is disabled via udev to avoid screwing up emulators that rely on joystick order.
  • mame needs to be told about the lightguns via hardcoded Xinput names
  • Xinput devices need hardcoded device paths
  • udev rules create symlinks for wiimotes to make Xinput happy.
  • wminput needs to be running before X starts (see wiimote init script)
  • Mouse has to be disabled in mame for this to work well, so the different wiimote buttons are mapped to unique keyboard presses. Mame (or X, not sure) does not recognize the full range of linux keypresses, so things get tricky.
@elsonrodriguez elsonrodriguez changed the title Wiimote support for Mame Wiimote Lightgun support for MAME Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant