This is a library for handling controller inputs on the Wii U.
Libinput currently handles the gamepad, Wii U Pro Controller, the Wiimote (buttons only, no motion) and its common peripherals like the Nunchuck, Wii Classic Controller and Wii Classic Controller Pro.
Support for HID devices like the Gamecube adapter is TODO.
If you intend to read through the code, I strongly recommend using an editor which allows you to collapse blocks, there are a few nasty switch-case-blocks in here that are not for the feint of heart.
This library uses features from dynamic_libs and libutils, so make sure these are both installed before trying to use libinput.
Compile using
make && make install
to install to your Portlibs folder, then make sure your Makefile has the include path
$(PORTLIBS)/include/libinput
for example by adding
export INCLUDE := [...] -I$(PORTLIBS)/include/libinput
Finally, make sure you link all libraries necessary for libinput to work
-lutils -ldynamic_libs -linput
Maschell and any other contributors for dynamic_libs and libutils, from which I stole the Makefile
Nintendo for making the Wii U gamepad so horrible I could use it to motivate myself to do this