summaryrefslogtreecommitdiff
path: root/src/xf86Wacom.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-03-03 13:40:08 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-07 13:10:44 +1000
commit1982daf6b13685cc6568a53b85d62089405963a9 (patch)
tree91bdda94d38598478a2278254dcd60f8c777ff68 /src/xf86Wacom.h
parente79f7a730cedee93db363c20ddddc9e90b41ef3b (diff)
downloadxf86-input-wacom-1982daf6b13685cc6568a53b85d62089405963a9.tar.gz
Rewrite wcmCheckSuppress
Instead of returning rather ambiguous 0, 1 and 2, return enums with readable descriptions. No functional changes, other than that we now skip a few tests in wcmCheckSuppress if we already have the result. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Ping Cheng <pinglinux@gmail.com>
Diffstat (limited to 'src/xf86Wacom.h')
-rw-r--r--src/xf86Wacom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xf86Wacom.h b/src/xf86Wacom.h
index 5ddb4e4..ac012f4 100644
--- a/src/xf86Wacom.h
+++ b/src/xf86Wacom.h
@@ -175,6 +175,12 @@ extern WacomCommonPtr wcmRefCommon(WacomCommonPtr common);
extern void wcmFreeCommon(WacomCommonPtr *common);
extern WacomCommonPtr wcmNewCommon(void);
+enum WacomSuppressMode {
+ SUPPRESS_NONE = 8, /* Process event normally */
+ SUPPRESS_ALL, /* Supress and discard the whole event */
+ SUPPRESS_NON_MOTION /* Supress all events but x/y motion */
+};
+
/****************************************************************************/
#endif /* __XF86WACOM_H */