A really simple (currently hardcoded) xbox controller emulator for my generic USB gamepads. Gamepad icon by Icons8
- Windows 10/11
- MSYS2 with MinGW-w64 toolchain
- CMake (included with MSYS2)
- ViGEm Bus Driver installed
- HIDAPI (available via MSYS2)
-
Install MSYS2 from https://www.msys2.org/
-
Open MSYS2 MINGW64 terminal and install required packages:
pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-hidapi git make
- Clone the repository with submodules:
git clone --recursive https://github.com/Enoch02/controller-emu
cd controller-emu
- Create build directory and run CMake:
mkdir build
cd build
cmake -G "MinGW Makefiles" ..
- Build the project:
make
- The compiled executable
controller-emu.exewill be created in thebuilddirectory.
- Make sure the ViGEm Bus Driver is installed
- Connect your gamepad
- Run
controller-emu.exe - Select your gamepad from the list