blob: b92d608342d8b7b50a737f66e32795bde370442f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
/*
* Copyright 2003 by John Joganic <john@joganic.com>
* Copyright 2003 - 2008 by Ping Cheng <pingc@wacom.com>
*
* 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 __XF86_XWACOM_H
#define __XF86_XWACOM_H
#include <X11/keysym.h>
#define XWACOM_PARAM_TOPX 1
#define XWACOM_PARAM_TOPY 2
#define XWACOM_PARAM_BOTTOMX 3
#define XWACOM_PARAM_BOTTOMY 4
#define XWACOM_PARAM_DEBUGLEVEL 5
#define XWACOM_PARAM_PRESSCURVE 6
#define XWACOM_PARAM_MODE 7
#define XWACOM_PARAM_TPCBUTTON 8
#define XWACOM_PARAM_TOUCH 9
#define XWACOM_PARAM_CURSORPROX 10
#define XWACOM_PARAM_ROTATE 11
#define XWACOM_PARAM_TWINVIEW 12
#define XWACOM_PARAM_SUPPRESS 13
#define XWACOM_PARAM_SCREEN_NO 14
#define XWACOM_PARAM_COMMONDBG 15
#define XWACOM_PARAM_RAWSAMPLE 16
#define XWACOM_PARAM_CAPACITY 17
/* The followings are defined together */
#define XWACOM_PARAM_BUTTON1 101
#define XWACOM_PARAM_BUTTON2 102
#define XWACOM_PARAM_BUTTON3 103
#define XWACOM_PARAM_BUTTON4 104
#define XWACOM_PARAM_BUTTON5 105
#define XWACOM_PARAM_BUTTON6 106
#define XWACOM_PARAM_BUTTON7 107
#define XWACOM_PARAM_BUTTON8 108
#define XWACOM_PARAM_BUTTON9 109
#define XWACOM_PARAM_BUTTON10 110
#define XWACOM_PARAM_BUTTON11 111
#define XWACOM_PARAM_BUTTON12 112
#define XWACOM_PARAM_BUTTON13 113
#define XWACOM_PARAM_BUTTON14 114
#define XWACOM_PARAM_BUTTON15 115
#define XWACOM_PARAM_BUTTON16 116
#define XWACOM_PARAM_BUTTON17 117
#define XWACOM_PARAM_BUTTON18 118
#define XWACOM_PARAM_BUTTON19 119
#define XWACOM_PARAM_BUTTON20 120
#define XWACOM_PARAM_BUTTON21 121
#define XWACOM_PARAM_BUTTON22 122
#define XWACOM_PARAM_BUTTON23 123
#define XWACOM_PARAM_BUTTON24 124
#define XWACOM_PARAM_BUTTON25 125
#define XWACOM_PARAM_BUTTON26 126
#define XWACOM_PARAM_BUTTON27 127
#define XWACOM_PARAM_BUTTON28 128
#define XWACOM_PARAM_BUTTON29 129
#define XWACOM_PARAM_BUTTON30 130
#define XWACOM_PARAM_BUTTON31 131
#define XWACOM_PARAM_BUTTON32 132
#define XWACOM_PARAM_NOXOPTION 150
#define XWACOM_PARAM_RELWUP 151
#define XWACOM_PARAM_RELWDN 152
#define XWACOM_PARAM_ABSWUP 153
#define XWACOM_PARAM_ABSWDN 154
#define XWACOM_PARAM_STRIPLUP 155
#define XWACOM_PARAM_STRIPLDN 156
#define XWACOM_PARAM_STRIPRUP 157
#define XWACOM_PARAM_STRIPRDN 158
/* End of together */
#define XWACOM_PARAM_SPEEDLEVEL 201
#define XWACOM_PARAM_CLICKFORCE 202
#define XWACOM_PARAM_ACCEL 203
#define XWACOM_PARAM_XYDEFAULT 204
#define XWACOM_PARAM_MMT 205
#define XWACOM_PARAM_RAWFILTER 206
/* the following 2 stays together */
#define XWACOM_PARAM_TVRESOLUTION0 207
#define XWACOM_PARAM_TVRESOLUTION1 208
#define XWACOM_PARAM_COREEVENT 209
#define XWACOM_PARAM_GETONLYPARAM 320
#define XWACOM_PARAM_TID 321
#define XWACOM_PARAM_TOOLID 322
#define XWACOM_PARAM_TOOLSERIAL 323
#define XWACOM_PARAM_NUMSCREEN 350
#define XWACOM_PARAM_STOPX0 351
#define XWACOM_PARAM_STOPY0 352
#define XWACOM_PARAM_SBOTTOMX0 353
#define XWACOM_PARAM_SBOTTOMY0 354
#define XWACOM_PARAM_STOPX1 355
#define XWACOM_PARAM_STOPY1 356
#define XWACOM_PARAM_SBOTTOMX1 357
#define XWACOM_PARAM_SBOTTOMY1 358
#define XWACOM_PARAM_STOPX2 359
#define XWACOM_PARAM_STOPY2 360
#define XWACOM_PARAM_SBOTTOMX2 361
#define XWACOM_PARAM_SBOTTOMY2 362
#define XWACOM_PARAM_STOPX3 363
#define XWACOM_PARAM_STOPY3 364
#define XWACOM_PARAM_SBOTTOMX3 365
#define XWACOM_PARAM_SBOTTOMY3 366
#define XWACOM_PARAM_STOPX4 367
#define XWACOM_PARAM_STOPY4 368
#define XWACOM_PARAM_SBOTTOMX4 369
#define XWACOM_PARAM_SBOTTOMY4 370
#define XWACOM_PARAM_STOPX5 371
#define XWACOM_PARAM_STOPY5 372
#define XWACOM_PARAM_SBOTTOMX5 373
#define XWACOM_PARAM_SBOTTOMY5 374
#define XWACOM_PARAM_STOPX6 375
#define XWACOM_PARAM_STOPY6 376
#define XWACOM_PARAM_SBOTTOMX6 377
#define XWACOM_PARAM_SBOTTOMY6 378
#define XWACOM_PARAM_STOPX7 379
#define XWACOM_PARAM_STOPY7 380
#define XWACOM_PARAM_SBOTTOMX7 381
#define XWACOM_PARAM_SBOTTOMY7 382
#define XWACOM_PARAM_XSCALING 383
#define TV_NONE 0
#define TV_ABOVE_BELOW 1
#define TV_LEFT_RIGHT 2
#define ROTATE_NONE 0
#define ROTATE_CW 1
#define ROTATE_CCW 2
#define ROTATE_HALF 3
#define XWACOM_MAX_SAMPLES 20
/* The following flags are used for XWACOM_PARAM_BUTTON# values to mark
* the type of event that should be emitted when that button is pressed;
* combined together they form an Action Code (AC).
*/
#define AC_CODE 0x0000ffff /* Mask to isolate button number or key code */
#define AC_BUTTON 0x00000000 /* Emit button events */
#define AC_KEY 0x00010000 /* Emit key events */
#define AC_MODETOGGLE 0x00020000 /* Toggle absolute/relative mode */
#define AC_DBLCLICK 0x00030000 /* Emit a button1 double-click event */
#define AC_DISPLAYTOGGLE 0x00040000 /* Toggle among screens */
#define AC_TYPE 0x000f0000 /* The mask to isolate event type bits */
#define AC_NUM_KEYS 0x0ff00000 /* The mask to isolate number of keys to send */
#define AC_CORE 0x10000000 /* Always emit a core event */
#define AC_EVENT 0xf00f0000 /* Mask to isolate event flag */
#endif /* __XF86_XWACOM_H */
|