Skip to content

Instantly share code, notes, and snippets.

@pspeter3
Created July 31, 2011 08:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pspeter3/1116604 to your computer and use it in GitHub Desktop.
Save pspeter3/1116604 to your computer and use it in GitHub Desktop.
Use with xboxdrv -c minecraft.xboxdrv
# Supports the default controls in the way I thought was logical.
#
# A is jump
# B is sneak
# X is drop
# Y is chat
# Scroll with the DPAD
# RT is left click
# LT is right click
# Left joystick is WASD
# Right joystick is Mouse
[xboxdrv]
ui-clear=true
trigger-as-button = true
[ui-axismap]
x1=KEY_D:KEY_A
y1=KEY_S:KEY_W
x2^dead:4000 = REL_X:750:-1
y2^dead:4000 = REL_Y:750:-1
# trigger^invert = rel-repeat:REL_WHEEL:1:50
[ui-buttonmap]
a = KEY_SPACE
b = KEY_LEFTSHIFT
x = KEY_Q
y = KEY_T
lt = BTN_RIGHT
rt = BTN_LEFT
# rb = KEY_PAGEDOWN
# lb = KEY_PAGEUP
# tl = KEY_BACKSPACE
# tr = KEY_SPACE
[ui-buttonmap]
# dl = KEY_LEFT
# dr = KEY_RIGHT
du = rel:REL_WHEEL:-1:500
dd = rel:REL_WHEEL:1:500
# lt = KEY_VOLUMEDOWN
# rt = KEY_VOLUMEUP
[ui-buttonmap]
start = KEY_E
back = KEY_ESC
# guide = KEY_ESC
# EOF #
@javierlopm
Copy link

Very useful! Thanks!

@gwgw99
Copy link

gwgw99 commented Apr 28, 2016

EXACTLY what i was looking for! Thanks!

@Chew
Copy link

Chew commented Oct 1, 2017

Hey! I decided to semi-fork this and make my own repository to where users can submit their own xboxdrvs, and I forked this and made it my own (gave this credit of course) so if you want to see a more updated version of this, check out my project here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment