wiiu gamepad input in wii homebrew with patched wii vc firmware
Go to file
2017-09-25 21:39:29 +02:00
demo added in sync button 2017-09-23 19:21:54 +02:00
include/wiidrc added in sync button 2017-09-23 19:21:54 +02:00
source -added WiiDRC_Connected that can be used to detect if the wii vc was started with drc on or off when using a r570 or r590 fw.img 2017-09-18 23:40:12 +02:00
LICENSE Initial commit 2017-09-13 23:59:27 +02:00
Makefile first commit 2017-09-14 00:11:40 +02:00
README.md some readme updates 2017-09-25 21:39:29 +02:00

libwiidrc

This is only usable with a sepcial patched fw.img and homebrew injected into a WiiU VC title, details on the patches are below.
Most WiiU VC injector tools already contain the patches required for this, the patches below are only needed if you do it manually.
The usage is quite simple, call WiiDRC_Init on boot and after that call WiiDRC_ScanPads every time you update your pad inputs.
To check if the gamepad is ready to use, call WiiDRC_Inited and WiiDRC_Connected, if both are true its good to go.
The analog stick range goes from about -80 to 80 so make sure to scale it to whatever you need.
See the "demo" folder for an example on how to use it in a bit more detail.
Both compiled Library and Demo can be grabbed from the Releases tab.

Patches

Right now the only patches that'll make it work are for the fw.img r590 (crc32 e2f27e9b) and are as follows:
offset 0x1478A from 0x6818 to 0x2000 (wiimote passthrough)
offset 0x115C2 from 2800D00349022209F004FF1D to F004FF2148022109F004FEF9 (custom function)
offset 0x14E92 from F001FAB9 to F7FCFB95 (jump to custom function)
offset 0x17A880 from 0x2000 to 0x2001 (to disable ahbprot)
offset 0x17E81C from 0x2201 to 0x2200 (to disable memprot)