summaryrefslogtreecommitdiff
path: root/src/xf86WacomDefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xf86WacomDefs.h')
-rw-r--r--src/xf86WacomDefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
index 5b54de6..fe078ec 100644
--- a/src/xf86WacomDefs.h
+++ b/src/xf86WacomDefs.h
@@ -184,6 +184,7 @@ struct _WacomModel
#define IsEraser(priv) (DEVICE_ID((priv)->flags) == ERASER_ID)
#define IsPad(priv) (DEVICE_ID((priv)->flags) == PAD_ID)
#define IsPen(priv) (IsStylus(priv) || IsEraser(priv))
+#define IsTablet(priv) (IsPen(priv) || IsCursor(priv))
#define IsUSBDevice(common) ((common)->wcmDevCls == &gWacomUSBDevice)