controller_patcher/README.md
2023-04-10 11:45:58 +02:00

1.5 KiB

What is in this controller_patcher repository

These files are the magic behind tools like HID to VPAD and can used to use your USB HID Device on your WiiU console.

How to create config files

Detailed information about creating config files and adding support for more controller can be found in the wiki

Where can I find config files

Configfiles for all controllers are collection in this repository

Logging usage

To able to use the logging change the "DO_LOGGING" parameter in the Makefile.

Compiling

You need to install all dependencies first!

Install this static library into your wut folder via:

make install

Link the application with

-lcontrollerpatcher

You also need to add the include path to your Makefile. Example:

export INCLUDE	:= [...] -I$(WUT_ROOT)/usr/include

Dependencies

  • wut (WUT branch) for common functions.

Example implementation

How to "install" it

TODO!

ControllerPatcher::Init(NULL); //No custom configuration
ControllerPatcher::disableControllerMapping();
ControllerPatcher::startNetworkServer();
ControllerPatcher::DeInit();
ControllerPatcher::stopNetworkServer();

Format the code via docker

docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source ./include -i

Credits:

  • Maschell
  • FIX94 - huge thanks to him and his initally created gc-to-vpad. Was a motivation and base to start all this