2 KiB
2 KiB
Controller Emulator For Linux
Big thank you to CommanderRag for providing the base script for this emulator: https://github.com/CommanderRag/xbox-controller-emulator-linux
How to set it up.
- Select the correct .cpp file that you want to use (each has a different control scheme (coming soon)).
- From there, you would want to get into the command line. Here are the commands to use:
cat /proc/bus/input/devices
- Find the "event" your keyboard uses, and put that in the .cpp file (should say something like: "PATH_HERE")
- Almost done! Finally, put that bad boy into a .cpp compiler! I use clang++ (part of clang).
- Run the command in terminal.
- Free controller emulator for linux.
Controls (Keyboard-to-Controller)
Keyboard Button | Controller Button |
---|---|
Tab | Top Face Button (Y) |
X | Left Face Button (X) |
Space Bar | Bottom Face Button (A) |
Left Alt | Right Face Button (B) |
W | Left Stick Up |
A | Left Stick Left |
S | Left Stick Down |
D | Left Stick Right |
I | Right Stick Up |
J | Right Stick Left |
K | Right Stick Down |
L | Right Stick Right |
Left Shift | Click In Left Stick |
Right Shift | Click In Right Stick |
G | D-Pad Up |
V | D-Pad Left |
B | D-Pad Down |
N | D-Pad Right |
F | Left Bumper (LT) |
H | Right Bumper (RT) |
R | Left Trigger (LT2) |
Y | Right Trigger (RT2) |
F1 | Select Button |
F2 | Start Button |
F3 | Mode Button (extra) |
Numpad Enter | Quit Application |