Documented button shifting

This commit is contained in:
Ingo Ruhnke 2010-05-20 01:33:19 +02:00
parent 7d5c379161
commit ae87bf0c90
3 changed files with 31 additions and 1 deletions

3
NEWS
View file

@ -3,7 +3,8 @@ xboxdrv 0.4.14 - (??/Mai/2010)
* added device_id handling to --ui-buttonmap and --ui-axismap, allows
the creation of multiple input devices from a single controller
* added shifting to --ui-buttonmap, allows sending of different events
when a shift button is pressed
xboxdrv 0.4.13 - (13/Mai/2010)
==============================

View file

@ -415,6 +415,20 @@ An example configuration makeing use of device_id would look like this:
In this example the left stick creates a joystick device
and the right stick creates a separate joystick device.
Instead of giving just a single button, it is also
possible to give two buttons
to \*(T<\fB\-\-ui\-buttonmap\fR\*(T> to allow shifting:
.nf
\*(T<xboxdrv \-s \e
\-\-ui\-clear \e
\-\-ui\-buttonmap A=JS_0,B=JS_1,LB+A=JS_2,LB+B=JS_3\*(T>
.fi
In this example LB acts as shift button, if A is pressed
without LB it will send out a JS_0 event, but if LB is
pressed it will send a JS_2 event instead.
See the section KEYBOARD EMULATION below on how to
resolve issues with Xorg not detecting the virtual
keyboard that xboxdrv creates.

View file

@ -547,6 +547,21 @@
In this example the left stick creates a joystick device
and the right stick creates a separate joystick device.
</para>
<para>
Instead of giving just a single button, it is also
possible to give two buttons
to <option>--ui-buttonmap</option> to allow shifting:
</para>
<programlisting><![CDATA[xboxdrv -s \
--ui-clear \
--ui-buttonmap A=JS_0,B=JS_1,LB+A=JS_2,LB+B=JS_3]]></programlisting>
<para>
In this example LB acts as shift button, if A is pressed
without LB it will send out a JS_0 event, but if LB is
pressed it will send a JS_2 event instead. This allows
you to multiply the number of available buttons on the
controller.
</para>
<para>
See the section KEYBOARD EMULATION below on how to
resolve issues with Xorg not detecting the virtual