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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user