Last active
November 19, 2016 20:33
-
-
Save entrity/a58c12427a84e1dad63f632cebda947e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config for PS2 Barracuda 1 | |
# buttons are: X A B Y L2 R2 L1 R1 sel start | |
COMMON | |
-X | |
-dev /dev/input/js0 | |
-thresh -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 -32767 32767 | |
-axis Left Right Up Down Left Right Up Down Left Right Up Down | |
-buttons S X Z A D C D C ShiftR Return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install joy2key # Translate joystick movements into equivalent keystrokes | |
sudo apt-get install joystick # set of testing and calibration tools for joysticks | |
# Plug in joystick. | |
jstest /dev/input/js0 | |
# Press buttons and move sticks. Write down correspondences for buttons and axes | |
joy2key -rc ~/.joy2keyrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment