summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wcmValidateDevice.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 1a5e722..9c0294b 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -308,6 +308,15 @@ int wcmDeviceTypeKeys(InputInfoPtr pInfo)
break;
}
+#ifdef INPUT_PROP_DIRECT
+ {
+ unsigned long prop[NBITS(INPUT_PROP_MAX)] = {0};
+
+ ioctl(pInfo->fd, EVIOCGPROP(sizeof(prop)), prop);
+ if (ISBITSET(prop, INPUT_PROP_DIRECT))
+ TabletSetFeature(priv->common, WCM_LCD);
+ }
+#endif
if (ISBITSET(common->wcmKeys, BTN_TOOL_PEN))
TabletSetFeature(priv->common, WCM_PEN);