[Xcb] [PATCH proto 16/22] xinput: new enum for device_id in some events
Christian Linhart
chris at demorecorder.com
Mon Aug 18 05:59:56 PDT 2014
add new enum "MoreEventsMask" to be used
by event DeviceKeyPress and derived ones
for field "device_id".
spec and code:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1999
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XIproto.h#n67
http://cgit.freedesktop.org/xorg/lib/libXi/tree/src/XExtInt.c#n534
http://cgit.freedesktop.org/xorg/xserver/tree/dix/eventconvert.c#n348
http://cgit.freedesktop.org/xorg/xserver/tree/Xi/exevents.c#n188
note:
this mask is missing in the following spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n2257
---
src/xinput.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/xinput.xml b/src/xinput.xml
index 923db96..cc47694 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1825,14 +1825,21 @@ <event name="DeviceValuator" number="0">
<field type="CARD8" name="num_valuators" />
<field type="CARD8" name="first_valuator" />
<list type="INT32" name="valuators">
<value>6</value>
</list>
</event>
+ <!-- the highest bit in a CARD8 device_id-field indicates that more
+ events will follow -->
+ <enum name="MoreEventsMask">
+ <item name="DeviceBits"> <value>127</value> </item> <!-- 0x7f -->
+ <item name="MoreEvents"> <bit>7</bit> </item> <!-- 0x80 -->
+ </enum>
+
<event name="DeviceKeyPress" number="1">
<field type="BYTE" name="detail" />
<field type="TIMESTAMP" name="time" />
<field type="WINDOW" name="root" />
<field type="WINDOW" name="event" />
<field type="WINDOW" name="child" altenum="Window" />
<field type="INT16" name="root_x" />
--
2.0.1
More information about the Xcb
mailing list