diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-14 14:48:56 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-19 09:08:36 +1000 |
commit | 758bc57ba5a89f765d83f0b169aa09e79a89bf89 (patch) | |
tree | 0696821788ddb2560a28765f087e76ea8e5ba326 /include | |
parent | 1a133eb8b1ddbe0da7c2fbf7f6a686ec4512373e (diff) |
dix: add helper functions to create DDX touch recs
DDX touch points are the ones that keep records of the driver-submitted
touchpoints. They're unaffected by the grab state and terminate on a
TouchEnd submitted by the driver.
The client ID assigned is server-global.
Since drivers usually submit in the SIGIO handler, we cannot allocate in the
these functions.
Co-authored-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index 0d31edf75..e79a3ee84 100644 --- a/include/input.h +++ b/include/input.h @@ -587,6 +587,11 @@ enum TouchListenerType { }; extern void TouchInitDDXTouchPoint(DeviceIntPtr dev, DDXTouchPointInfoPtr ddxtouch); +extern DDXTouchPointInfoPtr TouchBeginDDXTouch(DeviceIntPtr dev, uint32_t ddx_id); +extern void TouchEndDDXTouch(DeviceIntPtr dev, DDXTouchPointInfoPtr ti); +extern DDXTouchPointInfoPtr TouchFindByDDXID(DeviceIntPtr dev, + uint32_t ddx_id, + Bool create); extern Bool TouchInitTouchPoint(TouchClassPtr touch, ValuatorClassPtr v, int index); extern void TouchFreeTouchPoint(DeviceIntPtr dev, int index); |