File indexing completed on 2024-05-12 05:46:37
0001 /* 0002 * Copyright 2009 Red Hat, Inc. 0003 * 0004 * This program is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU General Public License 0006 * as published by the Free Software Foundation; either version 2 0007 * of the License, or (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 0017 */ 0018 0019 #ifndef _WACOM_PROPERTIES_H_ 0020 #define _WACOM_PROPERTIES_H_ 0021 0022 /** 0023 * Properties exported by the wacom driver. These properties are 0024 * recognized by the driver and will change its behavior when modified. 0025 */ 0026 0027 /* 32 bit, 4 values, top x, top y, bottom x, bottom y */ 0028 #define WACOM_PROP_TABLET_AREA "Wacom Tablet Area" 0029 0030 /* 8 bit, 1 value, [0 - 3] (NONE, CW, CCW, HALF) */ 0031 #define WACOM_PROP_ROTATION "Wacom Rotation" 0032 0033 /* 32 bit, 4 values */ 0034 #define WACOM_PROP_PRESSURECURVE "Wacom Pressurecurve" 0035 0036 /* CARD32, 5 values, tablet id, old serial, old hw device id, 0037 current serial, current device id 0038 read-only 0039 */ 0040 #define WACOM_PROP_SERIALIDS "Wacom Serial IDs" 0041 0042 /* CARD32, 1 value */ 0043 #define WACOM_PROP_SERIAL_BIND "Wacom Serial ID binding" 0044 0045 /* 8 bit, 4 values, left up, left down, right up, right down 0046 OR 0047 Atom, 4 values , left up, left down, right up, right down 0048 */ 0049 #define WACOM_PROP_STRIPBUTTONS "Wacom Strip Buttons" 0050 0051 /* 8 bit, 6 values, rel wheel up, rel wheel down, abs wheel up, abs wheel down, abs wheel 2 up, abs wheel 2 down 0052 OR 0053 Atom, 6 values , rel wheel up, rel wheel down, abs wheel up, abs wheel down, abs wheel 2 up, abs wheel 2 down 0054 */ 0055 #define WACOM_PROP_WHEELBUTTONS "Wacom Wheel Buttons" 0056 0057 /* DEPRECATED, DO NOT USE */ 0058 #define WACOM_PROP_TWINVIEW_RES "Wacom TwinView Resolution" 0059 0060 /* DEPRECATED. DO NOT USE */ 0061 #define WACOM_PROP_DISPLAY_OPTS "Wacom Display Options" 0062 0063 /* DEPRECATED. DO NOT USE */ 0064 #define WACOM_PROP_SCREENAREA "Wacom Screen Area" 0065 0066 /* 32 bit, 1 value */ 0067 #define WACOM_PROP_PROXIMITY_THRESHOLD "Wacom Proximity Threshold" 0068 0069 /* DEPRECATED. DO NOT USE */ 0070 #define WACOM_PROP_CAPACITY "Wacom Capacity" 0071 0072 /* 32 bit, 1 value */ 0073 #define WACOM_PROP_PRESSURE_THRESHOLD "Wacom Pressure Threshold" 0074 0075 /* 32 bit, 2 values, suppress, sample */ 0076 #define WACOM_PROP_SAMPLE "Wacom Sample and Suppress" 0077 0078 /* BOOL, 1 value */ 0079 #define WACOM_PROP_TOUCH "Wacom Enable Touch" 0080 0081 /* BOOL, 1 value, read-only */ 0082 #define WACOM_PROP_HARDWARE_TOUCH "Wacom Hardware Touch Switch" 0083 0084 /* 8 bit, 1 values */ 0085 #define WACOM_PROP_ENABLE_GESTURE "Wacom Enable Touch Gesture" 0086 0087 /* 32 bit, 3 values, zoom, rotate, tap parameters */ 0088 #define WACOM_PROP_GESTURE_PARAMETERS "Wacom Touch Gesture Parameters" 0089 0090 /* BOOL, 1 value, 0091 TRUE == hover click is enabled, FALSE == hover click disabled */ 0092 #define WACOM_PROP_HOVER "Wacom Hover Click" 0093 0094 /* Atom, 1 value, read-only */ 0095 #define WACOM_PROP_TOOL_TYPE "Wacom Tool Type" 0096 0097 /* Atom, X values where X is the number of physical buttons. 0098 Each value points to an atom containing the sequence of actions performed 0099 if this button is pressed. If the value is None, no action is performed. 0100 */ 0101 #define WACOM_PROP_BUTTON_ACTIONS "Wacom Button Actions" 0102 0103 /* 8 bit, 2 values, priv->debugLevel and common->debugLevel. This property 0104 * is for use in the driver only and only enabled if --enable-debug is 0105 * given. No client may rely on this property being present or working. 0106 */ 0107 #define WACOM_PROP_DEBUGLEVELS "Wacom Debug Levels" 0108 0109 /* BOOL, 1 value, 0110 TRUE == pressure renormalization enabled, FALSE == pressure renormalization disabled 0111 */ 0112 #define WACOM_PROP_PRESSURE_RECAL "Wacom Pressure Recalibration" 0113 0114 /* The following are tool types used by the driver in WACOM_PROP_TOOL_TYPE 0115 * or in the 'type' field for XI1 clients. Clients may check for one of 0116 * these types to identify tool types. 0117 */ 0118 #define WACOM_PROP_XI_TYPE_STYLUS "STYLUS" 0119 #define WACOM_PROP_XI_TYPE_CURSOR "CURSOR" 0120 #define WACOM_PROP_XI_TYPE_ERASER "ERASER" 0121 #define WACOM_PROP_XI_TYPE_PAD "PAD" 0122 #define WACOM_PROP_XI_TYPE_TOUCH "TOUCH" 0123 0124 #endif