Added shift example

This commit is contained in:
Ingo Ruhnke 2011-01-30 19:18:49 +01:00
parent abbe6dc463
commit ea02a55e26
2 changed files with 38 additions and 4 deletions

9
TODO
View file

@ -59,12 +59,8 @@ Documentation
* default config * default config
* all buttons and axis shifted by LB and RB
* evdev joystick to xbox360 * evdev joystick to xbox360
* dosbox flightstick emulation
* high sensitivty * high sensitivty
* give some response curve examples: * give some response curve examples:
@ -79,6 +75,11 @@ Stuff to do before 0.7.2 release:
* write relaxation modifier/filter * write relaxation modifier/filter
* make extra-event creation a bit more clever, i.e. only create BTN_A
when needed, not when another button is present that can be used to
identify the device as joystick, also document exactly which
buttons/axis combinations are valid.
Daemon Daemon
====== ======

33
examples/shift.xboxdrv Normal file
View file

@ -0,0 +1,33 @@
# Shift Example
# =============
#
# In this example all the face buttons are mapped three times, one for
# regular presses, once while LB is held down and once when RB is held
# down
[xboxdrv]
ui-clear = true
[ui-axismap]
X1 = ABS_X
Y1 = ABS_Y
[ui-buttonmap]
A = JS_0
B = JS_1
X = JS_2
Y = JS_3
# LB shifting
LB+A = JS_4
LB+B = JS_5
LB+X = JS_6
LB+Y = JS_7
# RB shifting
RB+A = JS_8
RB+B = JS_9
RB+X = JS_10
RB+Y = JS_11
# EOF #