XI.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
1096N/A/* $Xorg: XI.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
2362N/A
1096N/A/************************************************************
1096N/A
1096N/ACopyright 1989, 1998 The Open Group
1096N/A
1096N/APermission to use, copy, modify, distribute, and sell this software and its
1096N/Adocumentation for any purpose is hereby granted without fee, provided that
1096N/Athe above copyright notice appear in all copies and that both that
1096N/Acopyright notice and this permission notice appear in supporting
1096N/Adocumentation.
1096N/A
1096N/AThe above copyright notice and this permission notice shall be included in
1096N/Aall copies or substantial portions of the Software.
1096N/A
1096N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1096N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1096N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2362N/AOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
2362N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2362N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1096N/A
1096N/AExcept as contained in this notice, the name of The Open Group shall not be
1096N/Aused in advertising or otherwise to promote the sale, use or other dealings
1096N/Ain this Software without prior written authorization from The Open Group.
1096N/A
1096N/ACopyright 1989 by Hewlett-Packard Company, Palo Alto, California.
1096N/A
1096N/A All Rights Reserved
1096N/A
1096N/APermission to use, copy, modify, and distribute this software and its
1096N/Adocumentation for any purpose and without fee is hereby granted,
1096N/Aprovided that the above copyright notice appear in all copies and that
1096N/Aboth that copyright notice and this permission notice appear in
1096N/Asupporting documentation, and that the name of Hewlett-Packard not be
1096N/Aused in advertising or publicity pertaining to distribution of the
1096N/Asoftware without specific, written prior permission.
1096N/A
1096N/AHEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
1096N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
1096N/AHEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
1096N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1096N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
1096N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1096N/ASOFTWARE.
1096N/A
1096N/A********************************************************/
1096N/A/* $XFree86: xc/include/extensions/XI.h,v 1.5 2001/12/14 19:53:28 dawes Exp $ */
1096N/A
1096N/A/* Definitions used by the server, library and client */
1096N/A
1096N/A#ifndef _XI_H_
1096N/A
1096N/A#define _XI_H_
1096N/A
1096N/A#define sz_xGetExtensionVersionReq 8
1096N/A#define sz_xGetExtensionVersionReply 32
1096N/A#define sz_xListInputDevicesReq 4
1096N/A#define sz_xListInputDevicesReply 32
1096N/A#define sz_xOpenDeviceReq 8
1096N/A#define sz_xOpenDeviceReply 32
1096N/A#define sz_xCloseDeviceReq 8
1096N/A#define sz_xSetDeviceModeReq 8
1096N/A#define sz_xSetDeviceModeReply 32
1096N/A#define sz_xSelectExtensionEventReq 12
1096N/A#define sz_xGetSelectedExtensionEventsReq 8
1096N/A#define sz_xGetSelectedExtensionEventsReply 32
1096N/A#define sz_xChangeDeviceDontPropagateListReq 12
1096N/A#define sz_xGetDeviceDontPropagateListReq 8
1096N/A#define sz_xGetDeviceDontPropagateListReply 32
1096N/A#define sz_xGetDeviceMotionEventsReq 16
1096N/A#define sz_xGetDeviceMotionEventsReply 32
1096N/A#define sz_xChangeKeyboardDeviceReq 8
1096N/A#define sz_xChangeKeyboardDeviceReply 32
1096N/A#define sz_xChangePointerDeviceReq 8
1096N/A#define sz_xChangePointerDeviceReply 32
1096N/A#define sz_xGrabDeviceReq 20
1096N/A#define sz_xGrabDeviceReply 32
1096N/A#define sz_xUngrabDeviceReq 12
1096N/A#define sz_xGrabDeviceKeyReq 20
1096N/A#define sz_xGrabDeviceKeyReply 32
1096N/A#define sz_xUngrabDeviceKeyReq 16
1096N/A#define sz_xGrabDeviceButtonReq 20
1096N/A#define sz_xGrabDeviceButtonReply 32
1096N/A#define sz_xUngrabDeviceButtonReq 16
1096N/A#define sz_xAllowDeviceEventsReq 12
1096N/A#define sz_xGetDeviceFocusReq 8
1096N/A#define sz_xGetDeviceFocusReply 32
1096N/A#define sz_xSetDeviceFocusReq 16
1096N/A#define sz_xGetFeedbackControlReq 8
1096N/A#define sz_xGetFeedbackControlReply 32
1096N/A#define sz_xChangeFeedbackControlReq 12
1096N/A#define sz_xGetDeviceKeyMappingReq 8
1096N/A#define sz_xGetDeviceKeyMappingReply 32
1096N/A#define sz_xChangeDeviceKeyMappingReq 8
1096N/A#define sz_xGetDeviceModifierMappingReq 8
1096N/A#define sz_xSetDeviceModifierMappingReq 8
1096N/A#define sz_xSetDeviceModifierMappingReply 32
1096N/A#define sz_xGetDeviceButtonMappingReq 8
1096N/A#define sz_xGetDeviceButtonMappingReply 32
1096N/A#define sz_xSetDeviceButtonMappingReq 8
1096N/A#define sz_xSetDeviceButtonMappingReply 32
1096N/A#define sz_xQueryDeviceStateReq 8
1096N/A#define sz_xQueryDeviceStateReply 32
1096N/A#define sz_xSendExtensionEventReq 16
1096N/A#define sz_xDeviceBellReq 8
1096N/A#define sz_xSetDeviceValuatorsReq 8
1096N/A#define sz_xSetDeviceValuatorsReply 32
1096N/A#define sz_xGetDeviceControlReq 8
1096N/A#define sz_xGetDeviceControlReply 32
1096N/A#define sz_xChangeDeviceControlReq 8
1096N/A#define sz_xChangeDeviceControlReply 32
1096N/A
1096N/A#define INAME "XInputExtension"
1096N/A
1096N/A#define XI_KEYBOARD "KEYBOARD"
1096N/A#define XI_MOUSE "MOUSE"
1096N/A#define XI_TABLET "TABLET"
1096N/A#define XI_TOUCHSCREEN "TOUCHSCREEN"
1096N/A#define XI_TOUCHPAD "TOUCHPAD"
1096N/A#define XI_BARCODE "BARCODE"
1096N/A#define XI_BUTTONBOX "BUTTONBOX"
1096N/A#define XI_KNOB_BOX "KNOB_BOX"
1096N/A#define XI_ONE_KNOB "ONE_KNOB"
1096N/A#define XI_NINE_KNOB "NINE_KNOB"
1096N/A#define XI_TRACKBALL "TRACKBALL"
1096N/A#define XI_QUADRATURE "QUADRATURE"
1096N/A#define XI_ID_MODULE "ID_MODULE"
1096N/A#define XI_SPACEBALL "SPACEBALL"
1096N/A#define XI_DATAGLOVE "DATAGLOVE"
1096N/A#define XI_EYETRACKER "EYETRACKER"
1096N/A#define XI_CURSORKEYS "CURSORKEYS"
1096N/A#define XI_FOOTMOUSE "FOOTMOUSE"
1096N/A
1096N/A#define Dont_Check 0
1096N/A#define XInput_Initial_Release 1
1096N/A#define XInput_Add_XDeviceBell 2
1096N/A#define XInput_Add_XSetDeviceValuators 3
1096N/A#define XInput_Add_XChangeDeviceControl 4
1096N/A
1096N/A#define XI_Absent 0
1096N/A#define XI_Present 1
1096N/A
1096N/A#define XI_Initial_Release_Major 1
1096N/A#define XI_Initial_Release_Minor 0
1096N/A
1096N/A#define XI_Add_XDeviceBell_Major 1
1096N/A#define XI_Add_XDeviceBell_Minor 1
1096N/A
1096N/A#define XI_Add_XSetDeviceValuators_Major 1
1096N/A#define XI_Add_XSetDeviceValuators_Minor 2
1096N/A
1096N/A#define XI_Add_XChangeDeviceControl_Major 1
1096N/A#define XI_Add_XChangeDeviceControl_Minor 3
1096N/A
1096N/A#define DEVICE_RESOLUTION 1
1096N/A
1096N/A#define NoSuchExtension 1
1096N/A
1096N/A#define COUNT 0
1096N/A#define CREATE 1
1096N/A
1096N/A#define NewPointer 0
1096N/A#define NewKeyboard 1
1096N/A
1096N/A#define XPOINTER 0
1096N/A#define XKEYBOARD 1
1096N/A
1096N/A#define UseXKeyboard 0xFF
1096N/A
1096N/A#define IsXPointer 0
1096N/A#define IsXKeyboard 1
1096N/A#define IsXExtensionDevice 2
1096N/A
1096N/A#define AsyncThisDevice 0
1096N/A#define SyncThisDevice 1
1096N/A#define ReplayThisDevice 2
1096N/A#define AsyncOtherDevices 3
1096N/A#define AsyncAll 4
1096N/A#define SyncAll 5
1096N/A
1096N/A#define FollowKeyboard 3
1096N/A#ifndef RevertToFollowKeyboard
1096N/A#define RevertToFollowKeyboard 3
1096N/A#endif
1096N/A
1096N/A#define DvAccelNum (1L << 0)
1096N/A#define DvAccelDenom (1L << 1)
1096N/A#define DvThreshold (1L << 2)
1096N/A
1096N/A#define DvKeyClickPercent (1L<<0)
1096N/A#define DvPercent (1L<<1)
1096N/A#define DvPitch (1L<<2)
1096N/A#define DvDuration (1L<<3)
1096N/A#define DvLed (1L<<4)
1096N/A#define DvLedMode (1L<<5)
1096N/A#define DvKey (1L<<6)
1096N/A#define DvAutoRepeatMode (1L<<7)
1096N/A
1096N/A#define DvString (1L << 0)
1096N/A
1096N/A#define DvInteger (1L << 0)
1096N/A
1096N/A#define DeviceMode (1L << 0)
1096N/A#define Relative 0
1096N/A#define Absolute 1
1096N/A/* Merged from Metrolink tree for XINPUT stuff */
1096N/A#define TS_Raw 57
1096N/A#define TS_Scaled 58
1096N/A#define SendCoreEvents 59
1096N/A#define DontSendCoreEvents 60
1096N/A/* End of merged section */
1096N/A
1096N/A#define ProximityState (1L << 1)
1096N/A#define InProximity (0L << 1)
1096N/A#define OutOfProximity (1L << 1)
1096N/A
1096N/A#define AddToList 0
1096N/A#define DeleteFromList 1
1096N/A
1096N/A#define KeyClass 0
1096N/A#define ButtonClass 1
1096N/A#define ValuatorClass 2
1096N/A#define FeedbackClass 3
1096N/A#define ProximityClass 4
1096N/A#define FocusClass 5
1096N/A#define OtherClass 6
1096N/A
1096N/A#define KbdFeedbackClass 0
1096N/A#define PtrFeedbackClass 1
1096N/A#define StringFeedbackClass 2
1096N/A#define IntegerFeedbackClass 3
1096N/A#define LedFeedbackClass 4
1096N/A#define BellFeedbackClass 5
1096N/A
1096N/A#define _devicePointerMotionHint 0
1096N/A#define _deviceButton1Motion 1
1096N/A#define _deviceButton2Motion 2
1096N/A#define _deviceButton3Motion 3
1096N/A#define _deviceButton4Motion 4
1096N/A#define _deviceButton5Motion 5
1096N/A#define _deviceButtonMotion 6
1096N/A#define _deviceButtonGrab 7
1096N/A#define _deviceOwnerGrabButton 8
1096N/A#define _noExtensionEvent 9
1096N/A
1096N/A#define XI_BadDevice 0
1096N/A#define XI_BadEvent 1
1096N/A#define XI_BadMode 2
1096N/A#define XI_DeviceBusy 3
1096N/A#define XI_BadClass 4
1096N/A
1096N/A/* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
1096N/A * definition of XEventClass since that would be a library interface change.
1096N/A * See the top of X.h for more _XSERVER64 magic.
1096N/A */
1096N/A#ifdef _XSERVER64
1096N/Atypedef CARD32 XEventClass;
1096N/A#else
1096N/Atypedef unsigned long XEventClass;
1096N/A#endif
1096N/A
1096N/A/*******************************************************************
1096N/A *
1096N/A * Extension version structure.
1096N/A *
1096N/A */
1096N/A
1096N/Atypedef struct {
1096N/A int present;
1096N/A short major_version;
1096N/A short minor_version;
1096N/A} XExtensionVersion;
1096N/A
1096N/A#endif /* _XI_H_ */
1096N/A