diff options
Diffstat (limited to 'man/XIQueryDevice.txt')
-rw-r--r-- | man/XIQueryDevice.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/man/XIQueryDevice.txt b/man/XIQueryDevice.txt index 232d735..bc9e36f 100644 --- a/man/XIQueryDevice.txt +++ b/man/XIQueryDevice.txt @@ -101,7 +101,7 @@ DESCRIPTION The type field specifies the type of the input class. Currently, the following types are defined: XIKeyClass, XIButtonClass, XIValuatorClass, XIScrollClass, - XITouchClass + XITouchClass, XIGestureClass. In the future, additional types may be added. Clients are required to ignore unknown input classes. @@ -259,6 +259,23 @@ DESCRIPTION valuators must be defined with the respective XIValuatorClass classes. A valuator may send both pointer and touch-events. + typedef struct + { + int type; + int sourceid; + int num_touches; + } XIGestureClassInfo; + + A device may have zero or one XIGestureClassInfo, denoting + touchpad gesture capability on the device. A device with a XIGestureClassInfo + may send GestureSwipeBegin, GestureSwipeUpdate, GestureSwipeEnd, + GesturePinchBegin, GesturePinchUpdate, GesturePinchEnd. + + The num_touches field defines the maximum number of simultaneous touches + the device supports. A num_touches of 0 means the maximum number of + simultaneous touches is undefined or unspecified. This field should be + used as a guide only, devices will lie about their capabilities. + XIQueryDevice can generate a BadDevice error. XIFreeDeviceInfo frees the information returned by |