Skip to content

Instantly share code, notes, and snippets.

@entrity
Last active November 19, 2016 20:33
Show Gist options
  • Save entrity/a58c12427a84e1dad63f632cebda947e to your computer and use it in GitHub Desktop.
Save entrity/a58c12427a84e1dad63f632cebda947e to your computer and use it in GitHub Desktop.
# 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
#!/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