Skip to content

Instantly share code, notes, and snippets.

@dudleydes
Created March 7, 2017 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dudleydes/725dfc27e23ebe2981bcaf73909deabf to your computer and use it in GitHub Desktop.
Save dudleydes/725dfc27e23ebe2981bcaf73909deabf to your computer and use it in GitHub Desktop.
PS3 Controller xboxdrv configuration
# Rise of the Triad configuration for PS3 controller
# ==================================================
#
# This configuration file is for use with RoTT, a port of the Rise of the Triad source code (https://icculus.org/rott/).
[xboxdrv]
evdev = /dev/input/by-id/usb-Sony_PLAYSTATION_R_3_Controller-event-joystick
silent = true
detach-kernel-driver = true
deadzone-trigger = 15%
deadzone = 4000
mimic-xpad = true
dpad-as-button = true
trigger-as-button = true
[evdev-absmap]
ABS_X = x1
ABS_Y = y1
ABS_Z = x2
ABS_RZ = y2
[evdev-keymap]
KEY_#302 = a
KEY_#301 = b
BTN_DEAD = x
KEY_#300 = y
BTN_THUMB = tl
BTN_THUMB2 = tr
BTN_BASE3 = lt
BTN_BASE4 = rt
BTN_BASE5 = lb
BTN_BASE6 = rb
BTN_TRIGGER = back
KEY_#704 = guide
BTN_TOP = start
BTN_TOP2 = du
BTN_PINKIE = dr
BTN_BASE = dd
BTN_BASE2 = dl
[axismap]
-y1 = y1
-y2 = y2
[calibration]
x1 = -32767:0:32767
y1 = -32767:0:32767
x2 = -32767:0:32767
y2 = -32767:0:32767
[ui-axismap]
x1 = KEY_LEFT:KEY_RIGHT
y1 = KEY_UP:KEY_DOWN
x2 = KEY_COMMA:KEY_DOT
y2 = KEY_PAGEUP:KEY_PAGEDOWN
[ui-buttonmap]
lb = KEY_LEFTSHIFT
b = KEY_SPACE
rt = KEY_LEFTCTRL
a = KEY_ENTER
y = KEY_DELETE
x = KEY_CAPSLOCK
start = KEY_ESC
back = KEY_TAB
tl = KEY_BACKSPACE
rb = KEY_A
guide = KEY_Y
# EOF #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment