From 45a9bd95e7aea34c8d296befc18f3b01a537d218 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Tue, 29 Oct 2024 19:22:01 +0000 Subject: [PATCH] Add mouse emulation for touch devices (#2277) --- docs/labwc-config.5.scd | 6 +++++- docs/rc.xml.all | 5 ++++- include/config/touch.h | 1 + src/config/rcxml.c | 2 ++ src/input/touch.c | 13 ++++++++++++- 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index 6c073c85..636172e7 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -690,7 +690,7 @@ extending outward from the snapped edge. ## TOUCH ``` - + ``` ** @@ -704,6 +704,10 @@ extending outward from the snapped edge. Direct cursor movement to a specified output. If the compositor is running in nested mode, this does not take effect. +** + If mouseEmulation is enabled, all touch up/down/motion events are + translated to mouse button and motion events. + ## TABLET ``` diff --git a/docs/rc.xml.all b/docs/rc.xml.all index 10e0bd80..b1a8bae6 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -537,8 +537,11 @@ Direct cursor movement to a specified output. If the compositor is running in nested mode, this does not take effect. + + If mouseEmulation is enabled, all touch up/down/motion events are + translated to mouse button and motion events. --> - +