A static library for embedded devices to interact with Game Controllers over USB (and, in the future, bluetooth). When Embedded Game Controller is too long to write, you are welcome to use the EGC acronym.
| 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 |
| Generic PC controller | Dragonrise | 0079 | 0006 |
- DS3 and DS4 support includes LEDs, rumble, and the accelerometer
- DS4's touchpad is used to emulate the Wiimote IR Camera pointer
- Both controllers emulate a Wiimote with the Nunchuk and Classic Controller extensions connected. Press L1+L3 to switch between them
- Three IR pointer emulation modes: direct (touchpad, only for DS4), analog axis relative (move the pointer with the right analog) and analog axis absolute (the pointer is moved proportionally to the right analog starting from the center). Press R1+R3 to switch between them
EGC can be built on the following platforms:
- Nintendo Wii
- Nintendo Wii's Starlet processor (cIOS)
- Linux with libusb
- Download and install devkitPPC
- Make sure to install the
devkitppc-cmakepackage when usingpacman
mkdir build && cd build- Configure it with CMake:
cmake CMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/Wii.cmake" -DBUILD_EXAMPLE=ON .. make(orninjaif configured with-G Ninja)libembedded-game-controller.awill be generated
I recommend passing -DCMAKE_COLOR_DIAGNOSTICS:BOOL=TRUE, especially when using Ninja.
- Download and install devkitARM
- Make sure to install the
devkitarm-cmakepackage when usingpacman
mkdir build && cd build- Configure it with CMake. Two options:
a.arm-none-eabi-cmake ..
b.cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$DEVKITPRO/cmake/devkitARM.cmake .. make(orninjaif configured with-G Ninja)libembedded-game-controller.awill be generated
I recommend passing -DCMAKE_COLOR_DIAGNOSTICS:BOOL=TRUE, especially when using Ninja.
- xerpi's Fakemote, where this project came out from
- Dolphin emulator developers
- Wiibrew contributors
- d2x cIOS developers
- Aurelio Mannara
- neimod, for their Custom IOS Module Toolkit