Skip to content

Instantly share code, notes, and snippets.

@dudleydes
Created October 27, 2019 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dudleydes/4bdfa051492b99b5106845b3ee016171 to your computer and use it in GitHub Desktop.
Save dudleydes/4bdfa051492b99b5106845b3ee016171 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv --config /opt/retropie/configs/xboxdrv/abuse.xboxdrv >/dev/null &
/opt/retropie/emulators/dosbox/bin/dosbox -c "mount c /home/pi/RetroPie/roms/pc-data" -c "c:" -c "cd ABUSE" -c "ABUSE.EXE" -c "exit"
sudo killall >/dev/null xboxdrv
sleep 1
# DOS configuration of Abuse for PS3 controller
# ==================================================
#
# This configuration file is for use with Abuse, a DOS game.
[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
[ui-axismap]
x2 = REL_X:10
y2 = REL_Y:10
[ui-buttonmap]
start = KEY_ENTER
back = KEY_ESC
rb = BTN_RIGHT
rt = BTN_LEFT
dl = KEY_LEFTCTRL
dr = KEY_INSERT
a = KEY_KP2
# EOF #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment