diff options
author | Jason Gerecke <killertofu@gmail.com> | 2014-02-21 15:31:15 -0800 |
---|---|---|
committer | Jason Gerecke <killertofu@gmail.com> | 2014-03-19 15:42:37 -0700 |
commit | 62f912422bc428d2c7f2df71b164a956e895f29d (patch) | |
tree | f5bf8d51fc00cc24a2d0b7f5a36b10e2de74b74d /include | |
parent | 8bb519ef2b8428459c31139779cce44dbbc1cd0a (diff) | |
download | xf86-input-wacom-62f912422bc428d2c7f2df71b164a956e895f29d.tar.gz |
Support hardware touch switch
New Intuos series introduced a hardware switch to turn touch
events on/off. This patch retrieves its state from kernel by
checking if SW_MUTE_DEVICE is declared.
A new input property, WACOM_PROP_HARDWARE_TOUCH, is intoduced
to report touch status changed by end user through touch switch.
HardwareTouch, a new xsetwacom option, is added. This option
is read-only since the state can only be changed by end users.
This option is independent from the existing Touch option,
which can be considered as a software touch switch.
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/wacom-properties.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wacom-properties.h b/include/wacom-properties.h index dd7e7f3..3201d99 100644 --- a/include/wacom-properties.h +++ b/include/wacom-properties.h @@ -78,6 +78,9 @@ /* BOOL, 1 value */ #define WACOM_PROP_TOUCH "Wacom Enable Touch" +/* BOOL, 1 value, read-only */ +#define WACOM_PROP_HARDWARE_TOUCH "Wacom Hardware Touch Switch" + /* 8 bit, 1 values */ #define WACOM_PROP_ENABLE_GESTURE "Wacom Enable Touch Gesture" |