Skip to content

happymonkey1/kb-key-to-gamepad-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kb-key-to-gamepad-rs

Why is it (seemingly) so hard to find a simple program to convert a physical keyboard into a gamepad input?

This program leverages ViGEmBus to emulate a virtual control, allowing the user to bind Keyboard inputs to the virtual gamepad.

This is a simple program I created for personal use, so it is not production ready or heavily tested.

Operating System Compatability

This program only builds and runs on Windows. Feel free to open a PR with Linux support.

Building

Git clone the repository, then cargo build --release.

Dependencies

Running

Either run cargo run --release or build and run the corresponding release executable file.

If you did not install the ViGEmBus driver, the initial run of the program will fail. Follow the output log's link to ViGEmBus GitHub latest release to install.

During initialization, a config.json file will be created which allows for rebinding keys. This config is hot-reloaded.

About

(Read only mirror) Map keyboard inputs to a virtual gamepad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages