[Xcb] [PATCH proto 4/5] xinput: rep GetDeviceMotionEvents: full support
Christian Linhart
chris at demorecorder.com
Sun Sep 7 17:29:09 PDT 2014
complete definition of reply GetDeviceMotionEvents and struct DeviceTimeCoord
using paramref.
spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt?id=inputproto-2.3.1#n912
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml?id=libXi-1.7.4#n983
code:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XIproto.h?id=inputproto-2.3.1#n461
---
src/xinput.xml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/xinput.xml b/src/xinput.xml
index fb7e64e..8254685 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -300,30 +300,33 @@ <request name="GetDeviceDontPropagateList" opcode="9">
</reply>
</request>
<!-- GetDeviceMotionEvents -->
<struct name="DeviceTimeCoord">
<field type="TIMESTAMP" name="time" />
- <!-- Uninterpreted: list (axisvalues) of INT32,
- length is num_axes from GetDeviceMotionEvents -->
+ <list type="INT32" name="axisvalues">
+ <paramref type="CARD8">num_axes</paramref>
+ </list>
</struct>
<request name="GetDeviceMotionEvents" opcode="10">
<field type="TIMESTAMP" name="start" />
<field type="TIMESTAMP" name="stop" altenum="Time" />
<field type="CARD8" name="device_id" />
<pad bytes="3"/>
<reply>
<field type="CARD8" name="xi_reply_type" />
<field type="CARD32" name="num_events" />
<field type="CARD8" name="num_axes" />
<field type="CARD8" name="device_mode" enum="ValuatorMode" />
<pad bytes="18" />
- <!-- Uninterpreted: list (events) of DeviceTimeCoord structures -->
+ <list type="DeviceTimeCoord" name="events">
+ <fieldref>num_events</fieldref>
+ </list>
</reply>
</request>
<!-- ChangeKeyboardDevice -->
<request name="ChangeKeyboardDevice" opcode="11">
<field type="CARD8" name="device_id" />
--
2.0.1
More information about the Xcb
mailing list