Added two-sticks example

This commit is contained in:
Ingo Ruhnke 2011-01-30 19:13:10 +01:00
parent 420176ddd4
commit abbe6dc463
2 changed files with 36 additions and 4 deletions

6
TODO
View file

@ -46,6 +46,8 @@ Stuff to do before 0.7.1 release:
* add [controller0] support for ControllerSlotOptions
* BTN_A@joystick.1 doesn't work for a single joystick, why?
Documentation
=============
@ -57,8 +59,6 @@ Documentation
* default config
* two joysticks with one stick
* all buttons and axis shifted by LB and RB
* evdev joystick to xbox360
@ -67,8 +67,6 @@ Documentation
* high sensitivty
* mouse emulation
* give some response curve examples:
# Low sensitivity on the stick when LB is pressed:

View file

@ -0,0 +1,34 @@
# Two Sticks
# ==========
#
# This configuration gives you two virtual joysticks with a single
# gamepad. Your left analogstick will be mapped to the first stick and
# your second analog stick to the second. A and B will be mapped to
# the first stick, and X and Y to the second.
#
# Note how the @0 and @1 suffixes are used to assign the event to a
# different virtual device.
[xboxdrv]
# clear the default configuration, so we start empty
ui-clear = true
# Configuration for the first virtual joystick
[ui-axismap]
X1 = ABS_X@0
Y1 = ABS_Y@0
[ui-buttonmap]
A = BTN_JOYSTICK@0
B = BTN_THUMB@0
# Configuration for the second virtual joystick
[ui-axismap]
X2 = ABS_X@1
Y2 = ABS_Y@1
[ui-buttonmap]
X = BTN_JOYSTICK@1
Y = BTN_THUMB@1
# EOF #