From 6a5ed4a8c685cad0341467114013a127e4141c4d Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Mon, 20 Oct 2014 12:18:15 +0200 Subject: [PATCH] xinput: struct DeviceClass: full support replace uninterpreted_data by switch-case this is needed by struct XIDeviceInfo which is needed by reply XIQueryDevice. changes for V2 of this patch: * remove the pad after "sourceid" because that space is used by the first two bytes defined inside each case of the bit-case. ( noticed that problem by testing ) changes for V3 of this patch: * adapt to removal of patches "proto 6/7 and 7/7" in patchset ListInputDevices: adjust linenumbers in the patch accordingly spec: http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XI2proto.txt?id=inputproto-2.3.1#n752 Note: The spec lists TOUCHCLASS.num_touches as a CARD16 but the XI2proto.h header and the xml use the type CARD8 for it. Is this a spec bug? code: http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XI2.h?id=inputproto-2.3.1#n138 http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XI2proto.h?id=inputproto-2.3.1#n117 Message-ID: <5444E167.8090702@DemoRecorder.com> Patch-Thread-Subject: [Xcb] xinput: xml-fixes possible with new generator features Patch-Set: XmlFixesNewGenerator Patch-Number: proto 06/10 Patch-Version: V3 Signed-off-by: Christian Linhart --- src/xinput.xml | 61 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/src/xinput.xml b/src/xinput.xml index 1909a23..0fb15e4 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -47,7 +47,6 @@ which will, e.g., be necessary for server-side xcb. This affects the following: * QueryDeviceState reply field "classes" ( structs InputState, ... ) -* struct XIDeviceInfo field "classes" ( structs DeviceClass, ... ) * SendExtensionEvent member "events" ***** @@ -1759,16 +1758,56 @@ in struct DeviceTimeCoord. - - - - - len - 4 - - 8 - - + + type + + Key + + + num_keys + + + + Button + + + + + num_buttons + 31 + + 32 + + + + num_buttons + + + + Valuator + + + + + + + + + + + Scroll + + + + + + + + Touch + + + + -- 2.34.1