diff options
author | Peter Harris <pharris@opentext.com> | 2009-03-19 13:42:19 -0400 |
---|---|---|
committer | Peter Harris <pharris@opentext.com> | 2009-03-19 16:00:31 -0400 |
commit | 35286bcd46309b8395535f6f4b06ffb429c0422d (patch) | |
tree | 39b50c330c067f6611d7ef129413d68f719851b2 /src | |
parent | cb45e38331e383c8b04cb6c32c26fbbadf43e9eb (diff) |
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@opentext.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/xinput.xml | 14 |
1 files changed, 11 insertions, 3 deletions
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> |