2018-06-17 20:33:39 +02:00
[![Build Status ](https://travis-ci.org/Maschell/controller_patcher.svg?branch=wut )](https://travis-ci.org/Maschell/controller_patcher)
2017-11-19 11:05:23 +01:00
2016-07-30 17:09:26 +02:00
# 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.
2016-07-31 13:05:32 +02:00
# How to create config files
Detailed information about creating config files and adding support for more controller can be found in the [wiki ](https://github.com/Maschell/controller_patcher/wiki )
# Where can I find config files
Configfiles for all controllers are collection in [this repository ](https://github.com/Maschell/controller_patch_configs )
2017-10-29 09:34:47 +01:00
## Logging usage
To able to use the logging change the "DO_LOGGING" parameter in the Makefile.
# Compiling
You need to install all dependencies first!
2018-06-17 20:33:39 +02:00
Install this static library into your wut folder via:
2017-10-29 09:34:47 +01:00
```
2018-06-17 20:33:39 +02:00
mkdir build & & cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$WUT_ROOT ../
make install
2017-10-29 09:34:47 +01:00
```
2017-10-29 10:25:23 +01:00
Link the application with
```
2018-06-17 20:33:39 +02:00
-lutilswut -lcontrollerpatcherwut
2017-10-29 10:25:23 +01:00
```
2017-11-11 16:18:03 +01:00
You also need to add the include path to your Makefile. Example:
```
2018-06-17 20:33:39 +02:00
export INCLUDE := [...] -I$(WUT_ROOT)/include
2017-11-11 16:18:03 +01:00
```
2017-10-29 09:34:47 +01:00
# Dependencies
2018-06-17 20:33:39 +02:00
- [libutils ](https://github.com/Maschell/libutils/tree/wut ) (WUT branch) for common functions.
- [wut ](https://github.com/decaf-emu/wut ) (WUT branch) for common functions.
2016-07-30 17:09:26 +02:00
# Example implementation
2017-10-29 09:34:47 +01:00
2017-03-24 13:06:04 +01:00
### How to "install" it
2017-03-30 17:53:36 +02:00
TODO!
2016-08-03 21:44:59 +02:00
2017-10-29 09:34:47 +01:00
```
ControllerPatcher::Init(NULL); //No custom configuration
ControllerPatcher::disableControllerMapping();
ControllerPatcher::startNetworkServer();
```
```
ControllerPatcher::DeInit();
ControllerPatcher::stopNetworkServer();
```
2017-03-24 13:06:04 +01:00
# Credits:
2017-03-30 17:53:36 +02:00
- Maschell
2016-07-30 17:09:26 +02:00
- FIX94 - huge thanks to him and his initally created gc-to-vpad. Was a motivation and base to start all this