summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-11-06 15:47:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-11-10 17:12:11 +1000
commit72647504a8f8468ed9b0bdd5743fa543043ff546 (patch)
tree6bd4e8bf0f8fb96ca70ba24253fc53fb1d31f99c /include
parentc8bfc5fc86b4cda953d63e31260ce84a0aed5b59 (diff)
Add wacom-properties header file.
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am4
-rw-r--r--include/wacom-properties.h75
2 files changed, 77 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 8852a52..ccff26d 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,2 +1,2 @@
-EXTRA_DIST = Xwacom.h
-sdk_HEADERS = Xwacom.h
+EXTRA_DIST = Xwacom.h wacom-properties.h
+sdk_HEADERS = Xwacom.h wacom-properties.h
diff --git a/include/wacom-properties.h b/include/wacom-properties.h
new file mode 100644
index 0000000..0217230
--- /dev/null
+++ b/include/wacom-properties.h
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2009 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _WACOM_PROPERTIES_H_
+#define _WACOM_PROPERTIES_H_
+
+/**
+ * Properties exported by the wacom driver. These properties are
+ * recognized by the driver and will change its behavior when modified.
+ */
+
+/* 32 bit, 4 values, top x, top y, bottom x, bottom y */
+#define WACOM_PROP_TABLET_AREA "Wacom Tablet Area"
+
+/* 8 bit, 1 value, [0 - 3] (NONE, CW, CCW, HALF) */
+#define WACOM_PROP_ROTATION "Wacom Rotation"
+
+/* 32 bit, 4 values */
+#define WACOM_PROP_PRESSURECURVE "Wacom Pressurecurve"
+
+/* 32 bit, 4 values, tablet id, old serial, old device id, serial */
+#define WACOM_PROP_SERIALIDS "Wacom Serial IDs"
+
+/* 8 bit, 4 values, left up, left down, right up, right down */
+#define WACOM_PROP_STRIPBUTTONS "Wacom Strip Buttons"
+
+/* 8 bit, 4 values, up, down, wheel up, wheel down */
+#define WACOM_PROP_WHEELBUTTONS "Wacom Wheel Buttons"
+
+/* 32 bit, 4 values */
+#define WACOM_PROP_TWINVIEW_RES "Wacom TwinView Resolution"
+
+/* 8 bit 3 values, screen number, twinview on/off, multimonitor */
+#define WACOM_PROP_DISPLAY_OPTS "Wacom Display Options"
+
+/* 32 bit, 4 values, top x, top y, bottom x, bottom y */
+#define WACOM_PROP_SCREENAREA "Wacom Screen Area"
+
+/* 32 bit, 1 value */
+#define WACOM_PROP_PROXIMITY_THRESHOLD "Wacom Proximity Threshold"
+
+/* 32 bit, 1 value */
+#define WACOM_PROP_CAPACITY "Wacom Capacity"
+
+/* 32 bit, 1 value */
+#define WACOM_PROP_PRESSURE_THRESHOLD "Wacom Pressure Threshold"
+
+/* 32 bit, 2 values, sample, suppress */
+#define WACOM_PROP_SAMPLE "Wacom Sample and Suppress"
+
+/* BOOL, 1 value */
+#define WACOM_PROP_TOUCH "Wacom Enable Touch"
+
+/* BOOL, 1 value */
+#define WACOM_PROP_HOVER "Wacom Hover Click"
+
+/* Atom, 1 value */
+#define WACOM_PROP_TOOL_TYPE "Wacom Tool Type"
+
+#endif