summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-09-19 12:02:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-01-31 05:17:28 +0000
commitd3595908e508a4e18611ce208952add4264c555e (patch)
tree0aa33ec3f50e5047b516bfdf711be5f88487ed7b /src/evdev.h
parent794bff8af0b2050078a2013d303a0a0b6b850ee4 (diff)
downloadlibinput-d3595908e508a4e18611ce208952add4264c555e.tar.gz
evdev: introduce a touch arbitration enum
This enables us to change the types of touch arbitration, with the focus on allowing location-based touch arbitration as well as the more generic "disable everything". Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 3a613eb5..e983fb1d 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -144,6 +144,11 @@ enum evdev_debounce_state {
DEBOUNCE_ACTIVE,
};
+enum evdev_arbitration_state {
+ ARBITRATION_NOT_ACTIVE,
+ ARBITRATION_IGNORE_ALL,
+};
+
struct evdev_device {
struct libinput_device base;
@@ -301,7 +306,7 @@ struct evdev_dispatch_interface {
* enable/disable touch capabilities */
void (*toggle_touch)(struct evdev_dispatch *dispatch,
struct evdev_device *device,
- bool enable,
+ enum evdev_arbitration_state which,
uint64_t now);
/* Return the state of the given switch */