A line-of-sight accurate Wii Remote lightgun hack
MIT License
A line-of-sight accurate Wii Remote lightgun hack.
See the wiki for setting up yourself.
Demo program output: https://www.youtube.com/watch?v=eDgs1Uta8zo
Accuracy and latency test: https://www.youtube.com/watch?v=IGNFb0cMnkg
UINPUT requires root access in order to function correctly. This causes a problem as any applications that wish to use the device are not run as root. Simply running xwiigun-mouse with sudo is not enough.
This can be worked around using 2 different methods.
Method 1 (Temporary):
Run the following commands to change permissions of uinput:
Method 2 (Permanent):
In order to make the uinput rule permanent we need to tell the uinput module to run at boot and create a rule file to give uinput user permissions.
Note: If this doesnt work, a small change might be required to the uinput_fix.sh file. This is explained within the file itself.