[Xcb-commit] src

Peter Harris peterh at kemper.freedesktop.org
Thu Mar 19 13:01:57 PDT 2009


 src/xinput.xml |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

New commits:
commit 35286bcd46309b8395535f6f4b06ffb429c0422d
Author: Peter Harris <pharris at opentext.com>
Date:   Thu Mar 19 13:42:19 2009 -0400

    xinput tweaks
    
    - The 'present' field is boolean
    - The spec seems to imply that AxisInfo should be signed.
      In actual usage, some devices center on 0, and transmit signed values.
    - Add error definitions
    
    Signed-off-by: Peter Harris <pharris at opentext.com>

diff --git a/src/xinput.xml b/src/xinput.xml
index 89f3459..bc10d06 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -57,7 +57,7 @@ authorization from the authors.
 	    <pad bytes="1" />
 	    <field type="CARD16" name="server_major" />
 	    <field type="CARD16" name="server_minor" />
-	    <field type="CARD8" name="present" />
+	    <field type="BOOL" name="present" />
 	    <pad bytes="19" />
 	</reply>
     </request>
@@ -115,8 +115,8 @@ authorization from the authors.
 
     <struct name="AxisInfo">
 	<field type="CARD32" name="resolution" />
-	<field type="CARD32" name="minimum" />
-	<field type="CARD32" name="maximum" />
+	<field type="INT32" name="minimum" />
+	<field type="INT32" name="maximum" />
     </struct>
 
     <struct name="ValuatorInfo">
@@ -991,4 +991,12 @@ authorization from the authors.
         <field type="CARD16" name="control" />
 	<pad bytes="20" />
     </event>
+
+    <!-- ERRORS -->
+    <error name="Device" number="0" />
+    <error name="Event" number="1" />
+    <error name="Mode" number="2" />
+    <error name="DeviceBusy" number="3" />
+    <error name="Class" number="4" />
+
 </xcb>


More information about the xcb-commit mailing list