VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.6/X11/extensions/XI.h@ 19276

Last change on this file since 19276 was 19276, checked in by vboxsync, 16 years ago

x11include: missing header (otherwise the one from the host is used)

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

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