summaryrefslogtreecommitdiff
path: root/XI2proto.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-09-13 14:20:31 -0500
committerChase Douglas <chase.douglas@canonical.com>2011-09-13 14:30:45 -0500
commitb95adf9b14ff5ba2142e8521f02728dc6d903409 (patch)
tree014dc07e7966bd2ed38c4f5e1588d62b4caa1066 /XI2proto.h
parentd6dcfd4039ede37e9c858ab6e890fdb9582a5a9d (diff)
parent9cfdeedd16e96c0e67e70537e97a8f8dd0358244 (diff)
Merge remote-tracking branch 'inputproto/master' into multitouch-devel
Conflicts: XI2.h XI2proto.h specs/XI2proto.txt Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'XI2proto.h')
-rw-r--r--XI2proto.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 6991fda..023acc8 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -189,6 +189,22 @@ typedef struct {
uint16_t pad2;
} xXIValuatorInfo;
+/***
+ * Denotes a scroll valuator on a device.
+ * One XIScrollInfo describes exactly one scroll valuator that must have a
+ * XIValuatorInfo struct.
+ */
+typedef struct {
+ uint16_t type; /**< Always ValuatorClass */
+ uint16_t length; /**< Length in 4 byte units */
+ uint16_t sourceid; /**< source device for this class */
+ uint16_t number; /**< Valuator number */
+ uint16_t scroll_type; /**< ::XIScrollTypeVertical, ::XIScrollTypeHorizontal */
+ uint16_t pad0;
+ uint32_t flags; /**< ::XIScrollFlagEmulate, ::XIScrollFlagPreferred */
+ FP3232 increment; /**< Increment for one unit of scrolling */
+} xXIScrollInfo;
+
/**
* Denotes multitouch capability on a device.
*/
@@ -948,7 +964,7 @@ typedef struct
uint16_t deviceid;
Time time;
uint32_t detail;
- uint16_t pad0;
+ uint16_t sourceid; /**< The source device (XI 2.1) */
uint16_t valuators_len; /**< Length of trailing valuator
mask in 4 byte units */
uint32_t flags; /**< ::XIKeyRepeat */