Skip to content

Instantly share code, notes, and snippets.

@sobkas
Created April 3, 2015 13:00
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 sobkas/f0c0bcbe30881472155d to your computer and use it in GitHub Desktop.
Save sobkas/f0c0bcbe30881472155d to your computer and use it in GitHub Desktop.
Config file for nyko controller
[xboxdrv]
# Using the 'by-id' name is recomment, as it is static, while an
# /dev/input/eventX name can change depending on what other USB
# devices you use.
# Set a proper evdev for your controller
#evdev = /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
mimic-xpad = true
detach-kernel-driver = true
# This displays events received from the controller, if you are
# working on a configuration you want to set this to true:
evdev-debug = false
silent = true
# Grabbing the device prevents other applications from accessing it,
# this is needed most of the time te prevent applications from
# receiving events twice.
evdev-grab = true
[evdev-absmap]
ABS_GAS=RT
ABS_BRAKE=LT
ABS_X=x1
ABS_Y=y1
ABS_Z=X2
ABS_RZ=y2
ABS_HAT0X=dpad_x
ABS_HAT0Y=dpad_y
[evdev-keymap]
BTN_START=start
KEY_HOMEPAGE=guide
KEY_BACK=back
BTN_A=A
BTN_B=B
BTN_X=X
BTN_Y=Y
BTN_TL=LB
BTN_TR=RB
[axismap]
-y2=y2
-y1=y1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment