A simple Wii remote gamepad mapper for Linux.
- Download the tarball from the Releases section
- Untar with
tar -xvf WiiWill.tar.xz
- Install
make
and runsudo 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
.
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.
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
foruevent
s in which files under/dev/input
(specified byDEVNAME
) are created - Finds
DEVPATH
foruevent
whereNAME
is specified as"Nintendo Wii Remote"
- Combs through contents of
/sys/$DEVPATH
for a folder calledeventX
- Reads events from
/dev/input/eventX
- Generates mapped event through
uinput
- nervo/wiican for the inspiration
- Oblomov/wiimote-pad and xwiimote as references