An Xbox controller emulator for Linux that maps keyboard keys to buttons on a virtual controller.
- Add necessary udev rules file.
# /etc/udev/rules.d/99-xbkbremap.rules
KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static\_node=uinput"
- Add yourself to the
inputgroup.
sudo usermod -aG input $USER
- Reload udev rules.
sudo udevadm control --reload-rules && sudo udevadm trigger
- Compile the project with
cargo build --release. - Copy config.example.json to
~/.config/xbkbremap/config.jsonto use it as base configuration file. - Edit the copied configuration file to your liking.
- Run:
./target/release/xbkbremap "profile name"
Press F12 to stop the program.