Debian Codegraph @

nx-X11/include/extensions/XI.h

raw
1
2 /************************************************************
3
4 Copyright 1989, 1998 The Open Group
5
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation.
11
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from The Open Group.
25
26 Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
27
28 All Rights Reserved
29
30 Permission to use, copy, modify, and distribute this software and its
31 documentation for any purpose and without fee is hereby granted,
32 provided that the above copyright notice appear in all copies and that
33 both that copyright notice and this permission notice appear in
34 supporting documentation, and that the name of Hewlett-Packard not be
35 used in advertising or publicity pertaining to distribution of the
36 software without specific, written prior permission.
37
38 HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40 HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44 SOFTWARE.
45
46 ********************************************************/
47
48 /* Definitions used by the server, library and client */
49
50 #ifndef _XI_H_
51
52 #define _XI_H_
53
54 #define sz_xGetExtensionVersionReq 8
55 #define sz_xGetExtensionVersionReply 32
56 #define sz_xListInputDevicesReq 4
57 #define sz_xListInputDevicesReply 32
58 #define sz_xOpenDeviceReq 8
59 #define sz_xOpenDeviceReply 32
60 #define sz_xCloseDeviceReq 8
61 #define sz_xSetDeviceModeReq 8
62 #define sz_xSetDeviceModeReply 32
63 #define sz_xSelectExtensionEventReq 12
64 #define sz_xGetSelectedExtensionEventsReq 8
65 #define sz_xGetSelectedExtensionEventsReply 32
66 #define sz_xChangeDeviceDontPropagateListReq 12
67 #define sz_xGetDeviceDontPropagateListReq 8
68 #define sz_xGetDeviceDontPropagateListReply 32
69 #define sz_xGetDeviceMotionEventsReq 16
70 #define sz_xGetDeviceMotionEventsReply 32
71 #define sz_xChangeKeyboardDeviceReq 8
72 #define sz_xChangeKeyboardDeviceReply 32
73 #define sz_xChangePointerDeviceReq 8
74 #define sz_xChangePointerDeviceReply 32
75 #define sz_xGrabDeviceReq 20
76 #define sz_xGrabDeviceReply 32
77 #define sz_xUngrabDeviceReq 12
78 #define sz_xGrabDeviceKeyReq 20
79 #define sz_xGrabDeviceKeyReply 32
80 #define sz_xUngrabDeviceKeyReq 16
81 #define sz_xGrabDeviceButtonReq 20
82 #define sz_xGrabDeviceButtonReply 32
83 #define sz_xUngrabDeviceButtonReq 16
84 #define sz_xAllowDeviceEventsReq 12
85 #define sz_xGetDeviceFocusReq 8
86 #define sz_xGetDeviceFocusReply 32
87 #define sz_xSetDeviceFocusReq 16
88 #define sz_xGetFeedbackControlReq 8
89 #define sz_xGetFeedbackControlReply 32
90 #define sz_xChangeFeedbackControlReq 12
91 #define sz_xGetDeviceKeyMappingReq 8
92 #define sz_xGetDeviceKeyMappingReply 32
93 #define sz_xChangeDeviceKeyMappingReq 8
94 #define sz_xGetDeviceModifierMappingReq 8
95 #define sz_xSetDeviceModifierMappingReq 8
96 #define sz_xSetDeviceModifierMappingReply 32
97 #define sz_xGetDeviceButtonMappingReq 8
98 #define sz_xGetDeviceButtonMappingReply 32
99 #define sz_xSetDeviceButtonMappingReq 8
100 #define sz_xSetDeviceButtonMappingReply 32
101 #define sz_xQueryDeviceStateReq 8
102 #define sz_xQueryDeviceStateReply 32
103 #define sz_xSendExtensionEventReq 16
104 #define sz_xDeviceBellReq 8
105 #define sz_xSetDeviceValuatorsReq 8
106 #define sz_xSetDeviceValuatorsReply 32
107 #define sz_xGetDeviceControlReq 8
108 #define sz_xGetDeviceControlReply 32
109 #define sz_xChangeDeviceControlReq 8
110 #define sz_xChangeDeviceControlReply 32
111
112 #define INAME "XInputExtension"
113
114 #define XI_KEYBOARD "KEYBOARD"
115 #define XI_MOUSE "MOUSE"
116 #define XI_TABLET "TABLET"
117 #define XI_TOUCHSCREEN "TOUCHSCREEN"
118 #define XI_TOUCHPAD "TOUCHPAD"
119 #define XI_BARCODE "BARCODE"
120 #define XI_BUTTONBOX "BUTTONBOX"
121 #define XI_KNOB_BOX "KNOB_BOX"
122 #define XI_ONE_KNOB "ONE_KNOB"
123 #define XI_NINE_KNOB "NINE_KNOB"
124 #define XI_TRACKBALL "TRACKBALL"
125 #define XI_QUADRATURE "QUADRATURE"
126 #define XI_ID_MODULE "ID_MODULE"
127 #define XI_SPACEBALL "SPACEBALL"
128 #define XI_DATAGLOVE "DATAGLOVE"
129 #define XI_EYETRACKER "EYETRACKER"
130 #define XI_CURSORKEYS "CURSORKEYS"
131 #define XI_FOOTMOUSE "FOOTMOUSE"
132
133 #define Dont_Check 0
134 #define XInput_Initial_Release 1
135 #define XInput_Add_XDeviceBell 2
136 #define XInput_Add_XSetDeviceValuators 3
137 #define XInput_Add_XChangeDeviceControl 4
138
139 #define XI_Absent 0
140 #define XI_Present 1
141
142 #define XI_Initial_Release_Major 1
143 #define XI_Initial_Release_Minor 0
144
145 #define XI_Add_XDeviceBell_Major 1
146 #define XI_Add_XDeviceBell_Minor 1
147
148 #define XI_Add_XSetDeviceValuators_Major 1
149 #define XI_Add_XSetDeviceValuators_Minor 2
150
151 #define XI_Add_XChangeDeviceControl_Major 1
152 #define XI_Add_XChangeDeviceControl_Minor 3
153
154 #define DEVICE_RESOLUTION 1
155
156 #define NoSuchExtension 1
157
158 #define COUNT 0
159 #define CREATE 1
160
161 #define NewPointer 0
162 #define NewKeyboard 1
163
164 #define XPOINTER 0
165 #define XKEYBOARD 1
166
167 #define UseXKeyboard 0xFF
168
169 #define IsXPointer 0
170 #define IsXKeyboard 1
171 #define IsXExtensionDevice 2
172
173 #define AsyncThisDevice 0
174 #define SyncThisDevice 1
175 #define ReplayThisDevice 2
176 #define AsyncOtherDevices 3
177 #define AsyncAll 4
178 #define SyncAll 5
179
180 #define FollowKeyboard 3
181 #ifndef RevertToFollowKeyboard
182 #define RevertToFollowKeyboard 3
183 #endif
184
185 #define DvAccelNum (1L << 0)
186 #define DvAccelDenom (1L << 1)
187 #define DvThreshold (1L << 2)
188
189 #define DvKeyClickPercent (1L<<0)
190 #define DvPercent (1L<<1)
191 #define DvPitch (1L<<2)
192 #define DvDuration (1L<<3)
193 #define DvLed (1L<<4)
194 #define DvLedMode (1L<<5)
195 #define DvKey (1L<<6)
196 #define DvAutoRepeatMode (1L<<7)
197
198 #define DvString (1L << 0)
199
200 #define DvInteger (1L << 0)
201
202 #define DeviceMode (1L << 0)
203 #define Relative 0
204 #define Absolute 1
205 /* Merged from Metrolink tree for XINPUT stuff */
206 #define TS_Raw 57
207 #define TS_Scaled 58
208 #define SendCoreEvents 59
209 #define DontSendCoreEvents 60
210 /* End of merged section */
211
212 #define ProximityState (1L << 1)
213 #define InProximity (0L << 1)
214 #define OutOfProximity (1L << 1)
215
216 #define AddToList 0
217 #define DeleteFromList 1
218
219 #define KeyClass 0
220 #define ButtonClass 1
221 #define ValuatorClass 2
222 #define FeedbackClass 3
223 #define ProximityClass 4
224 #define FocusClass 5
225 #define OtherClass 6
226
227 #define KbdFeedbackClass 0
228 #define PtrFeedbackClass 1
229 #define StringFeedbackClass 2
230 #define IntegerFeedbackClass 3
231 #define LedFeedbackClass 4
232 #define BellFeedbackClass 5
233
234 #define _devicePointerMotionHint 0
235 #define _deviceButton1Motion 1
236 #define _deviceButton2Motion 2
237 #define _deviceButton3Motion 3
238 #define _deviceButton4Motion 4
239 #define _deviceButton5Motion 5
240 #define _deviceButtonMotion 6
241 #define _deviceButtonGrab 7
242 #define _deviceOwnerGrabButton 8
243 #define _noExtensionEvent 9
244
245 #define XI_BadDevice 0
246 #define XI_BadEvent 1
247 #define XI_BadMode 2
248 #define XI_DeviceBusy 3
249 #define XI_BadClass 4
250
251 /* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
252 * definition of XEventClass since that would be a library interface change.
253 * See the top of X.h for more _XSERVER64 magic.
254 */
255 #ifdef _XSERVER64
256 typedef CARD32 XEventClass;
257 #else
258 typedef unsigned long XEventClass;
259 #endif
260
261 /*******************************************************************
262 *
263 * Extension version structure.
264 *
265 */
266
267 typedef struct {
268 int present;
269 short major_version;
270 short minor_version;
271 } XExtensionVersion;
272
273 #endif /* _XI_H_ */