summaryrefslogtreecommitdiff
path: root/man/XIQueryDevice.txt
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-17 14:50:39 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-09-17 06:40:32 +1000
commit3ed1b463205295a5ebba7d570a4cb8dfade51a38 (patch)
tree5cef0d43e362afc1ba3f1f334c6be4b0314c4a29 /man/XIQueryDevice.txt
parent00382417331d0b38373796fd31757be9fd3e9971 (diff)
Support XI 2.1 XIScrollClass
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'man/XIQueryDevice.txt')
-rw-r--r--man/XIQueryDevice.txt39
1 files changed, 38 insertions, 1 deletions
diff --git a/man/XIQueryDevice.txt b/man/XIQueryDevice.txt
index 09da8d6..6b5a622 100644
--- a/man/XIQueryDevice.txt
+++ b/man/XIQueryDevice.txt
@@ -100,7 +100,7 @@ DESCRIPTION
The type field specifies the type of the input class.
Currently, the following types are defined:
- XIKeyClass, XIButtonClass, XIValuatorClass
+ XIKeyClass, XIButtonClass, XIValuatorClass, XIScrollClass
In the future, additional types may be added. Clients are
required to ignore unknown input classes.
@@ -194,6 +194,43 @@ DESCRIPTION
XIModeAbsolute this axis sends absolute coordinates. If the
mode is XIModeRelative, this device sends relative coordinates.
+ typedef struct
+ {
+ int type;
+ int sourceid;
+ int number;
+ int scroll_type;
+ double increment;
+ int flags;
+ } XIScrollClassInfo;
+
+ This class describes scrolling capability on a valuator. For
+ each XIScrollClassInfo, an XIValuatorClassInfo with the same
+ number is present on the device.
+
+ The number field specifies the valuator number on the physical
+ device that this scroll information applies to. See the
+ respective XIValuatorClassInfo for detailed information on this
+ valuator.
+
+ The scroll_type field specifies the type of scrolling, either
+ XIScrollTypeVertical or XIScrollTypeHorizontal.
+
+ The increment specifies the value change considered one unit of
+ scrolling down.
+
+ The flags field specifies flags that apply to this scrolling
+ information:
+
+ If XIScrollFlagNoEmulation is set, the server will not
+ emulate legacy button events for valuator changes on this
+ valuator.
+
+ If XIScrollFlagPreferred is set, this axis is the
+ preferred axis for this scroll type and will be used for
+ the emulation of XI_Motion events when the driver submits
+ legacy scroll button events.
+
XIQueryDevice can generate a BadDevice error.
XIFreeDeviceInfo frees the information returned by