1 /* $XConsortium: XI.h /main/16 1995/12/05 11:17:30 dpw $ */
3 /************************************************************
5 Copyright (c) 1989 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
28 Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, California.
32 Permission to use, copy, modify, and distribute this software and its
33 documentation for any purpose and without fee is hereby granted,
34 provided that the above copyright notice appear in all copies and that
35 both that copyright notice and this permission notice appear in
36 supporting documentation, and that the name of Hewlett-Packard not be
37 used in advertising or publicity pertaining to distribution of the
38 software without specific, written prior permission.
40 HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
41 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
42 HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
43 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
44 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
48 ********************************************************/
50 /* Definitions used by the server, library and client */
56 #define sz_xGetExtensionVersionReq 8
57 #define sz_xGetExtensionVersionReply 32
58 #define sz_xListInputDevicesReq 4
59 #define sz_xListInputDevicesReply 32
60 #define sz_xOpenDeviceReq 8
61 #define sz_xOpenDeviceReply 32
62 #define sz_xCloseDeviceReq 8
63 #define sz_xSetDeviceModeReq 8
64 #define sz_xSetDeviceModeReply 32
65 #define sz_xSelectExtensionEventReq 12
66 #define sz_xGetSelectedExtensionEventsReq 8
67 #define sz_xGetSelectedExtensionEventsReply 32
68 #define sz_xChangeDeviceDontPropagateListReq 12
69 #define sz_xGetDeviceDontPropagateListReq 8
70 #define sz_xGetDeviceDontPropagateListReply 32
71 #define sz_xGetDeviceMotionEventsReq 16
72 #define sz_xGetDeviceMotionEventsReply 32
73 #define sz_xChangeKeyboardDeviceReq 8
74 #define sz_xChangeKeyboardDeviceReply 32
75 #define sz_xChangePointerDeviceReq 8
76 #define sz_xChangePointerDeviceReply 32
77 #define sz_xGrabDeviceReq 20
78 #define sz_xGrabDeviceReply 32
79 #define sz_xUngrabDeviceReq 12
80 #define sz_xGrabDeviceKeyReq 20
81 #define sz_xGrabDeviceKeyReply 32
82 #define sz_xUngrabDeviceKeyReq 16
83 #define sz_xGrabDeviceButtonReq 20
84 #define sz_xGrabDeviceButtonReply 32
85 #define sz_xUngrabDeviceButtonReq 16
86 #define sz_xAllowDeviceEventsReq 12
87 #define sz_xGetDeviceFocusReq 8
88 #define sz_xGetDeviceFocusReply 32
89 #define sz_xSetDeviceFocusReq 16
90 #define sz_xGetFeedbackControlReq 8
91 #define sz_xGetFeedbackControlReply 32
92 #define sz_xChangeFeedbackControlReq 12
93 #define sz_xGetDeviceKeyMappingReq 8
94 #define sz_xGetDeviceKeyMappingReply 32
95 #define sz_xChangeDeviceKeyMappingReq 8
96 #define sz_xGetDeviceModifierMappingReq 8
97 #define sz_xSetDeviceModifierMappingReq 8
98 #define sz_xSetDeviceModifierMappingReply 32
99 #define sz_xGetDeviceButtonMappingReq 8
100 #define sz_xGetDeviceButtonMappingReply 32
101 #define sz_xSetDeviceButtonMappingReq 8
102 #define sz_xSetDeviceButtonMappingReply 32
103 #define sz_xQueryDeviceStateReq 8
104 #define sz_xQueryDeviceStateReply 32
105 #define sz_xSendExtensionEventReq 16
106 #define sz_xDeviceBellReq 8
107 #define sz_xSetDeviceValuatorsReq 8
108 #define sz_xSetDeviceValuatorsReply 32
109 #define sz_xGetDeviceControlReq 8
110 #define sz_xGetDeviceControlReply 32
111 #define sz_xChangeDeviceControlReq 8
112 #define sz_xChangeDeviceControlReply 32
114 #define INAME "XInputExtension"
116 #define XI_KEYBOARD "KEYBOARD"
117 #define XI_MOUSE "MOUSE"
118 #define XI_TABLET "TABLET"
119 #define XI_TOUCHSCREEN "TOUCHSCREEN"
120 #define XI_TOUCHPAD "TOUCHPAD"
121 #define XI_BARCODE "BARCODE"
122 #define XI_BUTTONBOX "BUTTONBOX"
123 #define XI_KNOB_BOX "KNOB_BOX"
124 #define XI_ONE_KNOB "ONE_KNOB"
125 #define XI_NINE_KNOB "NINE_KNOB"
126 #define XI_TRACKBALL "TRACKBALL"
127 #define XI_QUADRATURE "QUADRATURE"
128 #define XI_ID_MODULE "ID_MODULE"
129 #define XI_SPACEBALL "SPACEBALL"
130 #define XI_DATAGLOVE "DATAGLOVE"
131 #define XI_EYETRACKER "EYETRACKER"
132 #define XI_CURSORKEYS "CURSORKEYS"
133 #define XI_FOOTMOUSE "FOOTMOUSE"
136 #define XInput_Initial_Release 1
137 #define XInput_Add_XDeviceBell 2
138 #define XInput_Add_XSetDeviceValuators 3
139 #define XInput_Add_XChangeDeviceControl 4
144 #define XI_Initial_Release_Major 1
145 #define XI_Initial_Release_Minor 0
147 #define XI_Add_XDeviceBell_Major 1
148 #define XI_Add_XDeviceBell_Minor 1
150 #define XI_Add_XSetDeviceValuators_Major 1
151 #define XI_Add_XSetDeviceValuators_Minor 2
153 #define XI_Add_XChangeDeviceControl_Major 1
154 #define XI_Add_XChangeDeviceControl_Minor 3
156 #define DEVICE_RESOLUTION 1
158 #define NoSuchExtension 1
164 #define NewKeyboard 1
169 #define UseXKeyboard 0xFF
172 #define IsXKeyboard 1
173 #define IsXExtensionDevice 2
175 #define AsyncThisDevice 0
176 #define SyncThisDevice 1
177 #define ReplayThisDevice 2
178 #define AsyncOtherDevices 3
182 #define FollowKeyboard 3
183 #ifndef RevertToFollowKeyboard
184 #define RevertToFollowKeyboard 3
187 #define DvAccelNum (1L << 0)
188 #define DvAccelDenom (1L << 1)
189 #define DvThreshold (1L << 2)
191 #define DvKeyClickPercent (1L<<0)
192 #define DvPercent (1L<<1)
193 #define DvPitch (1L<<2)
194 #define DvDuration (1L<<3)
195 #define DvLed (1L<<4)
196 #define DvLedMode (1L<<5)
197 #define DvKey (1L<<6)
198 #define DvAutoRepeatMode (1L<<7)
200 #define DvString (1L << 0)
202 #define DvInteger (1L << 0)
204 #define DeviceMode (1L << 0)
208 #define ProximityState (1L << 1)
209 #define InProximity (0L << 1)
210 #define OutOfProximity (1L << 1)
213 #define DeleteFromList 1
216 #define ButtonClass 1
217 #define ValuatorClass 2
218 #define FeedbackClass 3
219 #define ProximityClass 4
223 #define KbdFeedbackClass 0
224 #define PtrFeedbackClass 1
225 #define StringFeedbackClass 2
226 #define IntegerFeedbackClass 3
227 #define LedFeedbackClass 4
228 #define BellFeedbackClass 5
230 #define _devicePointerMotionHint 0
231 #define _deviceButton1Motion 1
232 #define _deviceButton2Motion 2
233 #define _deviceButton3Motion 3
234 #define _deviceButton4Motion 4
235 #define _deviceButton5Motion 5
236 #define _deviceButtonMotion 6
237 #define _deviceButtonGrab 7
238 #define _deviceOwnerGrabButton 8
239 #define _noExtensionEvent 9
241 #define XI_BadDevice 0
242 #define XI_BadEvent 1
244 #define XI_DeviceBusy 3
245 #define XI_BadClass 4
247 /* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
248 * definition of XEventClass since that would be a library interface change.
249 * See the top of X.h for more _XSERVER64 magic.
252 typedef CARD32 XEventClass;
254 typedef unsigned long XEventClass;
257 /*******************************************************************
259 * Extension version structure.