RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    xwiigun - a line-of-sight accurate Wii remote lightgun hack

    Scheduled Pinned Locked Moved Projects and Themes
    lightgunwiimote
    1 Posts 1 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hifiH
      hifi
      last edited by

      Hi,

      I've been working on getting a Wii remote to work as a cheap line-of-sight accurate lightgun and I was forwarded here from Reddit if there are more people interested in this project.

      It's not using a dolphin bar or the original Wii sensor bar, it's based on a custom LED array around the screen to calculate the real position where the remote is aiming at. It works fairly well and the code can still be improved a lot. Latest changes provide a uinput touchscreen mouse emulation which works better across different setups.

      Here's the code: https://github.com/hifi/xwiigun
      Here's the demo:


      Here's an accuracy and latency test:

      If you have some IR LEDs and a soldering iron it's trivial to get this going. The GitHub wiki has some schematics.

      How's the mouse/lightgun support in RetroPie? From my initial testing the cursor seems to be forced on and it doesn't seem to use real screen position of an absolute mouse input and aiming is way off for me but I haven't dug deep yet.

      1 Reply Last reply Reply Quote 4
      • First post
        Last post

      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.