VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/extensions/XI.h@ 99743

Last change on this file since 99743 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 8.5 KB
Line 
1/* $Xorg: XI.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
2
3/************************************************************
4
5Copyright 1989, 1998 The Open Group
6
7Permission to use, copy, modify, distribute, and sell this software and its
8documentation for any purpose is hereby granted without fee, provided that
9the above copyright notice appear in all copies and that both that
10copyright notice and this permission notice appear in supporting
11documentation.
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from The Open Group.
26
27Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
28
29 All Rights Reserved
30
31Permission to use, copy, modify, and distribute this software and its
32documentation for any purpose and without fee is hereby granted,
33provided that the above copyright notice appear in all copies and that
34both that copyright notice and this permission notice appear in
35supporting documentation, and that the name of Hewlett-Packard not be
36used in advertising or publicity pertaining to distribution of the
37software without specific, written prior permission.
38
39HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45SOFTWARE.
46
47********************************************************/
48/* $XFree86: xc/include/extensions/XI.h,v 1.5 2001/12/14 19:53:28 dawes Exp $ */
49
50/* Definitions used by the server, library and client */
51
52#ifndef _XI_H_
53
54#define _XI_H_
55
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
113
114#define INAME "XInputExtension"
115
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"
134
135#define Dont_Check 0
136#define XInput_Initial_Release 1
137#define XInput_Add_XDeviceBell 2
138#define XInput_Add_XSetDeviceValuators 3
139#define XInput_Add_XChangeDeviceControl 4
140
141#define XI_Absent 0
142#define XI_Present 1
143
144#define XI_Initial_Release_Major 1
145#define XI_Initial_Release_Minor 0
146
147#define XI_Add_XDeviceBell_Major 1
148#define XI_Add_XDeviceBell_Minor 1
149
150#define XI_Add_XSetDeviceValuators_Major 1
151#define XI_Add_XSetDeviceValuators_Minor 2
152
153#define XI_Add_XChangeDeviceControl_Major 1
154#define XI_Add_XChangeDeviceControl_Minor 3
155
156#define DEVICE_RESOLUTION 1
157
158#define NoSuchExtension 1
159
160#define COUNT 0
161#define CREATE 1
162
163#define NewPointer 0
164#define NewKeyboard 1
165
166#define XPOINTER 0
167#define XKEYBOARD 1
168
169#define UseXKeyboard 0xFF
170
171#define IsXPointer 0
172#define IsXKeyboard 1
173#define IsXExtensionDevice 2
174
175#define AsyncThisDevice 0
176#define SyncThisDevice 1
177#define ReplayThisDevice 2
178#define AsyncOtherDevices 3
179#define AsyncAll 4
180#define SyncAll 5
181
182#define FollowKeyboard 3
183#ifndef RevertToFollowKeyboard
184#define RevertToFollowKeyboard 3
185#endif
186
187#define DvAccelNum (1L << 0)
188#define DvAccelDenom (1L << 1)
189#define DvThreshold (1L << 2)
190
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)
199
200#define DvString (1L << 0)
201
202#define DvInteger (1L << 0)
203
204#define DeviceMode (1L << 0)
205#define Relative 0
206#define Absolute 1
207/* Merged from Metrolink tree for XINPUT stuff */
208#define TS_Raw 57
209#define TS_Scaled 58
210#define SendCoreEvents 59
211#define DontSendCoreEvents 60
212/* End of merged section */
213
214#define ProximityState (1L << 1)
215#define InProximity (0L << 1)
216#define OutOfProximity (1L << 1)
217
218#define AddToList 0
219#define DeleteFromList 1
220
221#define KeyClass 0
222#define ButtonClass 1
223#define ValuatorClass 2
224#define FeedbackClass 3
225#define ProximityClass 4
226#define FocusClass 5
227#define OtherClass 6
228
229#define KbdFeedbackClass 0
230#define PtrFeedbackClass 1
231#define StringFeedbackClass 2
232#define IntegerFeedbackClass 3
233#define LedFeedbackClass 4
234#define BellFeedbackClass 5
235
236#define _devicePointerMotionHint 0
237#define _deviceButton1Motion 1
238#define _deviceButton2Motion 2
239#define _deviceButton3Motion 3
240#define _deviceButton4Motion 4
241#define _deviceButton5Motion 5
242#define _deviceButtonMotion 6
243#define _deviceButtonGrab 7
244#define _deviceOwnerGrabButton 8
245#define _noExtensionEvent 9
246
247#define XI_BadDevice 0
248#define XI_BadEvent 1
249#define XI_BadMode 2
250#define XI_DeviceBusy 3
251#define XI_BadClass 4
252
253/* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
254 * definition of XEventClass since that would be a library interface change.
255 * See the top of X.h for more _XSERVER64 magic.
256 */
257#ifdef _XSERVER64
258typedef CARD32 XEventClass;
259#else
260typedef unsigned long XEventClass;
261#endif
262
263/*******************************************************************
264 *
265 * Extension version structure.
266 *
267 */
268
269typedef struct {
270 int present;
271 short major_version;
272 short minor_version;
273} XExtensionVersion;
274
275#endif /* _XI_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette