WiiWill
A simple Wii remote gamepad mapper for Linux.
Installation and usage
- Download the tarball from the Releases section
- Untar with
tar -xvf WiiWill.tar.xz
- Install
make
and run sudo make install
- Launch program
- Connect Wii remote from system's bluetooth settings
Steps 4 and 5 must be done in order for WiiWill to recognize the remote.
Multiple instances of the app can be launched (generally done by middle-clicking the app icon in the taskbar/dash) to handle multiple Wiimotes.
Disconnect Wiimote through system bluetooth settings.
Uninstall with sudo make uninstall
.
Motivations
Other similar programs seem to be either unmaintained or difficult to use.
My hope with this is to be able to distribute a single package or binary that works out-of-the-box, with no separate driver or library installation necessary.
How it works
Disclaimer
I'm learning about how Linux handles input devices on the fly.
There may well be better ways to achieve what I'm doing here; I'm just going by what worked for me.
That said, suggestions and contributions are welcome.
- Monitors
udev
for uevent
s in which files under /dev/input
(specified by DEVNAME
) are created
- Finds
DEVPATH
for uevent
where NAME
is specified as "Nintendo Wii Remote"
- Combs through contents of
/sys/$DEVPATH
for a folder called eventX
- Reads events from
/dev/input/eventX
- Generates mapped event through
uinput
Acknowledgements