Skip to content

Instantly share code, notes, and snippets.

@llllvvuu
Created January 7, 2017 11:58
Show Gist options
  • Save llllvvuu/46ec0583e1b6e1ea7c71d781fca065b8 to your computer and use it in GitHub Desktop.
Save llllvvuu/46ec0583e1b6e1ea7c71d781fca065b8 to your computer and use it in GitHub Desktop.
OSMC RasPi Wireless XBox 360 controller
# Mouse Emulation
# ===============
#
# This configuration file emulates a mouse. The left stick controls
# the cursor, the right stick becomes a horizontal and vertical scroll
# wheel, the dpad acts as cursor keys, the start and back buttons
# become forward and back buttons, the guide button escape and LB and
# RB become page up and page down and the face button act as mouse
# button.
[xboxdrv]
ui-clear=true
deadzone = 6000
[ui-axismap]
x1=REL_X:10
y1=REL_Y:10
LT^resp:127:255=ABS_Z
RT^resp:127:255=ABS_RZ
lt = KEY_VOLUMEDOWN:20
rt = KEY_VOLUMEUP:20
[ui-buttonmap]
a = KEY_ENTER
b = KEY_BACKSPACE
x = KEY_X
y = KEY_ESC
rb = KEY_I
lb = KEY_C
tl = BTN_LEFT
tr = BTN_RIGHT
[ui-buttonmap]
dl = KEY_LEFT
dr = KEY_RIGHT
du = KEY_UP
dd = KEY_DOWN
[ui-buttonmap]
start = KEY_FORWARD
back = KEY_BACK
guide = KEY_ESC
# EOF #
#!/bin/sh -e
/home/osmc/start.sh
exit 0
#!/bin/bash
rmmod xpad
modprobe uinput
modprobe joydev
/usr/bin/xboxdrv --mimic-xpad --config /home/osmc/mouse.xboxdrv &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment