xerpi / fakemote

A Wii cIOS module that fakes Wiimotes from the input of USB game controllers
GNU General Public License v2.0
178 stars 16 forks source link

fakemote

A Wii cIOS module that fakes Wiimotes from the input of USB game controllers.

Features

Supported USB game controllers

Device Name Vendor Name Vendor ID Product ID
PlayStation 3 Controller Sony Corp. 054c 0268
DualShock 4 [CUH-ZCT1x] Sony Corp. 054c 05c4
DualShock 4 [CUH-ZCT2x] Sony Corp. 054c 09cc

Installation

1) Download d2x cIOS Installer for regular Wii/d2x cIOS Installer for vWii and extract it to the SD card 2) Copy FAKEMOTE.app to the d2x cIOS Installer directory that contains the modules of the cIOS version you want to install. For example, for d2x-v10-beta52 copy FAKEMOTE.app to sd:/apps/d2x-cIOS-Installer-Wii/v10/beta52/d2x-v10-beta52 3) Open d2x cIOS Installer's ciosmaps.xml (located at sd:/apps/d2x-cIOS-Installer-Wii/ciosmaps.xml) and do the following: 1) Locate the line containing the base IOS version you want to install. It starts with <base ios=. For base IOS 57:

      <base ios="57" version="5918" contentscount="26" modulescount="7">

3) Increase modulescount and contentscount by 1. For base IOS 57:

      <base ios="57" version="5918" contentscount="27" modulescount="8">

3) Add a <content> entry for FAKEMOTEafter the last <content module>. For base IOS 57:

      <content id="0x24" module="FAKEMOTE" tmdmoduleid="-1"/>

4) Run d2x cIOS Installer and install the cIOS

Usage

Notes

Compilation

1) Install devkitARM
2) Install stripios

1) Download stripios's source code from Leseratte's d2xl cIOS 2) Compile it:

   g++ main.cpp -o stripios

3) Install it:

   cp stripios $DEVKITPRO/tools/bin
3) Build FAKEMOTE.app
  1. mkdir build && cd build
  2. Configure it with CMake. Two options:\  a. arm-none-eabi-cmake ..\  b. cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$DEVKITPRO/cmake/devkitARM.cmake ..
  3. make (or ninja if configured with -G Ninja)
  4. FAKEMOTE.app will be generated

I recommend passing -DCMAKE_COLOR_DIAGNOSTICS:BOOL=TRUE, especially when using Ninja.

Credits

Disclaimer

THIS APPLICATION COMES WITH NO WARRANTY AT ALL, NEITHER EXPRESSED NOR IMPLIED.
NO ONE BUT YOURSELF IS RESPONSIBLE FOR ANY DAMAGE TO YOUR WII CONSOLE BECAUSE OF A IMPROPER USAGE OF THIS SOFTWARE.