Documented some --match rules

This commit is contained in:
Ingo Ruhnke 2011-01-29 04:43:15 +01:00
parent 330e62dacc
commit e67d5b1a1f
3 changed files with 99 additions and 7 deletions

8
TODO
View file

@ -42,6 +42,10 @@ $ dput my-ppa ../xboxdrv_0.7.1-1~lucid1_source.changes
Stuff to do before 0.7.1 release:
=================================
* how exactly does daemon interact with wireless pads?! allow --wid --id for daemon
* make --led LED part of ControllerSlotOptions to use with multiple controller
* make more use of percentance values (in deadzone filter for example)
* add option to increase libusb debug level
@ -54,8 +58,6 @@ Stuff to do before 0.7.1 release:
* allow multiple controllers in non-daemon mode
* document match rules
* improve output in daemon mode, when --quiet is not given print the
number of allocated controller slots
@ -162,6 +164,8 @@ Stuff to do before 0.7.3 release:
Stuff to do before 0.7.x release:
=================================
* add Wiimote and PS3 bluetooth support
* -R, --rumble-test is broken for FirestormDualController (has no analog triggers)
* add ABS support to macros events (need to deal with min/max)

View file

@ -556,10 +556,33 @@ Switches to the next controller slot.
\*(T<\fB\-\-match\fR\*(T> \fIRULE,...\fR
Limits a controller slot to devices that match any one
of the given rules. Possible match rules are:
.nf
\*(T<usbid={VENDOR}:{PRODUCT}\*(T>
.fi
.RS
.TP
usbid=\fIVENDOR\fR:\fIPRODUCT\fR
Match controllers that have the
given USB vendor and product ids.
.TP
vendor=\fIVENDOR\fR
Match controllers that have the
given USB idVendor.
.TP
product=\fIPRODUCT\fR
Match controllers that have the
given USB idProduct.
.TP
property=\fIPROPERTY\fR:\fIVALUE\fR
Match against an arbitary udev property, with
name \fIPROPERTY\fR and
value \fIVALUE\fR.
.TP
usbpath=\fIBUS\fR:\fIDEV\fR
Match against the USB path given
by \fIBUS\fR
and \fIDEV\fR.
.TP
usbserial=\fISERIAL\fR
Match against the USB iSerial number.
.RE
.TP
\*(T<\fB\-\-match\-group\fR\*(T> \fIRULE,...\fR
Limits a controller slot to devices that match all of

View file

@ -853,7 +853,72 @@ start=KEY_ESC
Limits a controller slot to devices that match any one
of the given rules. Possible match rules are:
</para>
<programlisting>usbid={VENDOR}:{PRODUCT}</programlisting>
<variablelist>
<varlistentry>
<term>usbid=<replaceable>VENDOR</replaceable>:<replaceable>PRODUCT</replaceable></term>
<listitem>
<para>
Match controllers that have the
given USB vendor and product ids.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>vendor=<replaceable>VENDOR</replaceable></term>
<listitem>
<para>
Match controllers that have the
given USB idVendor.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>product=<replaceable>PRODUCT</replaceable></term>
<listitem>
<para>
Match controllers that have the
given USB idProduct.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>property=<replaceable>PROPERTY</replaceable>:<replaceable>VALUE</replaceable></term>
<listitem>
<para>
Match against an arbitary udev property, with
name <replaceable>PROPERTY</replaceable> and
value <replaceable>VALUE</replaceable>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>usbpath=<replaceable>BUS</replaceable>:<replaceable>DEV</replaceable></term>
<listitem>
<para>
Match against the USB path given
by <replaceable>BUS</replaceable>
and <replaceable>DEV</replaceable>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>usbserial=<replaceable>SERIAL</replaceable></term>
<listitem>
<para>
Match against the USB iSerial number.
</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>