xinput: ev DeviceButtonStateNotify.device_id: mask

add mask "MoreEventsMask" to field "device_id"

V2: patch revised according to suggestion from Peter Harris:
* use "altmask" instead of "mask"
  because all the legal values of device_id are not described
  by the <bit> elements of MoreEventsMask.

V3: revised the diff-context according to the modification of patch 19/22 V2.

spec:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n2252
http://cgit.freedesktop.org/xorg/xserver/tree/dix/enterleave.c#n725

note:
this mask is missing in the following spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n2431
This commit is contained in:
Christian Linhart 2014-08-22 17:26:10 +02:00 committed by Christian Linhart
parent fe95c9448b
commit df64e417b8

View file

@ -1916,7 +1916,7 @@ authorization from the authors.
</event>
<event name="DeviceButtonStateNotify" number="14">
<field type="BYTE" name="device_id" />
<field type="BYTE" name="device_id" altmask="MoreEventsMask" />
<list type="CARD8" name="buttons">
<value>28</value>
</list>