Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:31

0001 /************************************************************
0002 
0003 Copyright 1989, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
0026 
0027             All Rights Reserved
0028 
0029 Permission to use, copy, modify, and distribute this software and its
0030 documentation for any purpose and without fee is hereby granted,
0031 provided that the above copyright notice appear in all copies and that
0032 both that copyright notice and this permission notice appear in
0033 supporting documentation, and that the name of Hewlett-Packard not be
0034 used in advertising or publicity pertaining to distribution of the
0035 software without specific, written prior permission.
0036 
0037 HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0038 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0039 HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0040 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0041 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0042 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0043 SOFTWARE.
0044 
0045 ********************************************************/
0046 
0047 /* Definitions used by the server, library and client */
0048 
0049 #ifndef _XI_H_
0050 #define _XI_H_
0051 
0052 #define sz_xGetExtensionVersionReq             8
0053 #define sz_xGetExtensionVersionReply           32
0054 #define sz_xListInputDevicesReq         4
0055 #define sz_xListInputDevicesReply       32
0056 #define sz_xOpenDeviceReq           8
0057 #define sz_xOpenDeviceReply         32
0058 #define sz_xCloseDeviceReq          8
0059 #define sz_xSetDeviceModeReq            8
0060 #define sz_xSetDeviceModeReply          32
0061 #define sz_xSelectExtensionEventReq     12
0062 #define sz_xGetSelectedExtensionEventsReq   8
0063 #define sz_xGetSelectedExtensionEventsReply 32
0064 #define sz_xChangeDeviceDontPropagateListReq    12
0065 #define sz_xGetDeviceDontPropagateListReq   8
0066 #define sz_xGetDeviceDontPropagateListReply 32
0067 #define sz_xGetDeviceMotionEventsReq        16
0068 #define sz_xGetDeviceMotionEventsReply      32
0069 #define sz_xChangeKeyboardDeviceReq     8
0070 #define sz_xChangeKeyboardDeviceReply       32
0071 #define sz_xChangePointerDeviceReq      8
0072 #define sz_xChangePointerDeviceReply        32
0073 #define sz_xGrabDeviceReq           20
0074 #define sz_xGrabDeviceReply         32
0075 #define sz_xUngrabDeviceReq         12
0076 #define sz_xGrabDeviceKeyReq            20
0077 #define sz_xGrabDeviceKeyReply          32
0078 #define sz_xUngrabDeviceKeyReq          16
0079 #define sz_xGrabDeviceButtonReq         20
0080 #define sz_xGrabDeviceButtonReply       32
0081 #define sz_xUngrabDeviceButtonReq       16
0082 #define sz_xAllowDeviceEventsReq        12
0083 #define sz_xGetDeviceFocusReq           8
0084 #define sz_xGetDeviceFocusReply         32
0085 #define sz_xSetDeviceFocusReq           16
0086 #define sz_xGetFeedbackControlReq       8
0087 #define sz_xGetFeedbackControlReply     32
0088 #define sz_xChangeFeedbackControlReq        12
0089 #define sz_xGetDeviceKeyMappingReq      8
0090 #define sz_xGetDeviceKeyMappingReply        32
0091 #define sz_xChangeDeviceKeyMappingReq       8
0092 #define sz_xGetDeviceModifierMappingReq     8
0093 #define sz_xSetDeviceModifierMappingReq     8
0094 #define sz_xSetDeviceModifierMappingReply   32
0095 #define sz_xGetDeviceButtonMappingReq       8
0096 #define sz_xGetDeviceButtonMappingReply     32
0097 #define sz_xSetDeviceButtonMappingReq       8
0098 #define sz_xSetDeviceButtonMappingReply     32
0099 #define sz_xQueryDeviceStateReq         8
0100 #define sz_xQueryDeviceStateReply       32
0101 #define sz_xSendExtensionEventReq       16
0102 #define sz_xDeviceBellReq           8
0103 #define sz_xSetDeviceValuatorsReq       8
0104 #define sz_xSetDeviceValuatorsReply     32
0105 #define sz_xGetDeviceControlReq         8
0106 #define sz_xGetDeviceControlReply       32
0107 #define sz_xChangeDeviceControlReq      8
0108 #define sz_xChangeDeviceControlReply        32
0109 #define sz_xListDevicePropertiesReq             8
0110 #define sz_xListDevicePropertiesReply           32
0111 #define sz_xChangeDevicePropertyReq             20
0112 #define sz_xDeleteDevicePropertyReq             12
0113 #define sz_xGetDevicePropertyReq                24
0114 #define sz_xGetDevicePropertyReply              32
0115 
0116 #define INAME       "XInputExtension"
0117 
0118 #define XI_KEYBOARD "KEYBOARD"
0119 #define XI_MOUSE    "MOUSE"
0120 #define XI_TABLET   "TABLET"
0121 #define XI_TOUCHSCREEN  "TOUCHSCREEN"
0122 #define XI_TOUCHPAD "TOUCHPAD"
0123 #define XI_BARCODE  "BARCODE"
0124 #define XI_BUTTONBOX    "BUTTONBOX"
0125 #define XI_KNOB_BOX "KNOB_BOX"
0126 #define XI_ONE_KNOB "ONE_KNOB"
0127 #define XI_NINE_KNOB    "NINE_KNOB"
0128 #define XI_TRACKBALL    "TRACKBALL"
0129 #define XI_QUADRATURE   "QUADRATURE"
0130 #define XI_ID_MODULE    "ID_MODULE"
0131 #define XI_SPACEBALL    "SPACEBALL"
0132 #define XI_DATAGLOVE    "DATAGLOVE"
0133 #define XI_EYETRACKER   "EYETRACKER"
0134 #define XI_CURSORKEYS   "CURSORKEYS"
0135 #define XI_FOOTMOUSE    "FOOTMOUSE"
0136 #define XI_JOYSTICK "JOYSTICK"
0137 
0138 /* Indices into the versions[] array (XExtInt.c). Used as a index to
0139  * retrieve the minimum version of XI from _XiCheckExtInit */
0140 #define Dont_Check          0
0141 #define XInput_Initial_Release      1
0142 #define XInput_Add_XDeviceBell      2
0143 #define XInput_Add_XSetDeviceValuators  3
0144 #define XInput_Add_XChangeDeviceControl 4
0145 #define XInput_Add_DevicePresenceNotify 5
0146 #define XInput_Add_DeviceProperties 6
0147 /* DO NOT ADD TO HERE -> XI2 */
0148 
0149 #define XI_Absent       0
0150 #define XI_Present      1
0151 
0152 #define XI_Initial_Release_Major        1
0153 #define XI_Initial_Release_Minor        0
0154 
0155 #define XI_Add_XDeviceBell_Major        1
0156 #define XI_Add_XDeviceBell_Minor        1
0157 
0158 #define XI_Add_XSetDeviceValuators_Major    1
0159 #define XI_Add_XSetDeviceValuators_Minor    2
0160 
0161 #define XI_Add_XChangeDeviceControl_Major   1
0162 #define XI_Add_XChangeDeviceControl_Minor   3
0163 
0164 #define XI_Add_DevicePresenceNotify_Major   1
0165 #define XI_Add_DevicePresenceNotify_Minor   4
0166 
0167 #define XI_Add_DeviceProperties_Major       1
0168 #define XI_Add_DeviceProperties_Minor       5
0169 
0170 #define DEVICE_RESOLUTION   1
0171 #define DEVICE_ABS_CALIB        2
0172 #define DEVICE_CORE             3
0173 #define DEVICE_ENABLE           4
0174 #define DEVICE_ABS_AREA         5
0175 
0176 #define NoSuchExtension     1
0177 
0178 #define COUNT           0
0179 #define CREATE          1
0180 
0181 #define NewPointer      0
0182 #define NewKeyboard     1
0183 
0184 #define XPOINTER        0
0185 #define XKEYBOARD       1
0186 
0187 #define UseXKeyboard        0xFF
0188 
0189 #define IsXPointer      0
0190 #define IsXKeyboard     1
0191 #define IsXExtensionDevice  2
0192 #define IsXExtensionKeyboard    3
0193 #define IsXExtensionPointer     4
0194 
0195 #define AsyncThisDevice     0
0196 #define SyncThisDevice      1
0197 #define ReplayThisDevice    2
0198 #define AsyncOtherDevices   3
0199 #define AsyncAll        4
0200 #define SyncAll         5
0201 
0202 #define FollowKeyboard      3
0203 #ifndef RevertToFollowKeyboard
0204 #define RevertToFollowKeyboard  3
0205 #endif
0206 
0207 #define DvAccelNum              (1L << 0)
0208 #define DvAccelDenom            (1L << 1)
0209 #define DvThreshold             (1L << 2)
0210 
0211 #define DvKeyClickPercent   (1L<<0)
0212 #define DvPercent       (1L<<1)
0213 #define DvPitch         (1L<<2)
0214 #define DvDuration      (1L<<3)
0215 #define DvLed           (1L<<4)
0216 #define DvLedMode       (1L<<5)
0217 #define DvKey           (1L<<6)
0218 #define DvAutoRepeatMode    (1L<<7)
0219 
0220 #define DvString                (1L << 0)
0221 
0222 #define DvInteger               (1L << 0)
0223 
0224 #define DeviceMode              (1L << 0)
0225 #define Relative                0
0226 #define Absolute                1
0227 
0228 #define ProximityState          (1L << 1)
0229 #define InProximity             (0L << 1)
0230 #define OutOfProximity          (1L << 1)
0231 
0232 #define AddToList               0
0233 #define DeleteFromList          1
0234 
0235 #define KeyClass        0
0236 #define ButtonClass         1
0237 #define ValuatorClass       2
0238 #define FeedbackClass       3
0239 #define ProximityClass      4
0240 #define FocusClass          5
0241 #define OtherClass          6
0242 #define AttachClass             7
0243 
0244 #define KbdFeedbackClass    0
0245 #define PtrFeedbackClass    1
0246 #define StringFeedbackClass     2
0247 #define IntegerFeedbackClass    3
0248 #define LedFeedbackClass    4
0249 #define BellFeedbackClass   5
0250 
0251 #define _devicePointerMotionHint 0
0252 #define _deviceButton1Motion     1
0253 #define _deviceButton2Motion     2
0254 #define _deviceButton3Motion     3
0255 #define _deviceButton4Motion     4
0256 #define _deviceButton5Motion     5
0257 #define _deviceButtonMotion  6
0258 #define _deviceButtonGrab    7
0259 #define _deviceOwnerGrabButton   8
0260 #define _noExtensionEvent    9
0261 
0262 #define _devicePresence      0
0263 
0264 #define _deviceEnter             0
0265 #define _deviceLeave             1
0266 
0267 /* Device presence notify states */
0268 #define DeviceAdded              0
0269 #define DeviceRemoved            1
0270 #define DeviceEnabled            2
0271 #define DeviceDisabled           3
0272 #define DeviceUnrecoverable      4
0273 #define DeviceControlChanged     5
0274 
0275 /* XI Errors */
0276 #define XI_BadDevice    0
0277 #define XI_BadEvent 1
0278 #define XI_BadMode  2
0279 #define XI_DeviceBusy   3
0280 #define XI_BadClass 4
0281 
0282 /*
0283  * Make XEventClass be a CARD32 for 64 bit servers.  Don't affect client
0284  * definition of XEventClass since that would be a library interface change.
0285  * See the top of X.h for more _XSERVER64 magic.
0286  *
0287  * But, don't actually use the CARD32 type.  We can't get it defined here
0288  * without polluting the namespace.
0289  */
0290 #ifdef _XSERVER64
0291 typedef unsigned int    XEventClass;
0292 #else
0293 typedef unsigned long   XEventClass;
0294 #endif
0295 
0296 /*******************************************************************
0297  *
0298  * Extension version structure.
0299  *
0300  */
0301 
0302 typedef struct {
0303         int     present;
0304         short   major_version;
0305         short   minor_version;
0306 } XExtensionVersion;
0307 
0308 #endif /* _XI_H_ */