Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
/ libinput Public archive

A small WIP library intended to unify all common input methods for the Wii U into an easy-to-use package

Notifications You must be signed in to change notification settings

jakobkg/libinput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libinput

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.

Dependencies

This library uses features from dynamic_libs and libutils, so make sure these are both installed before trying to use libinput.

Usage

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

Credits

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

About

A small WIP library intended to unify all common input methods for the Wii U into an easy-to-use package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published