annotate semiconginev2/old/thirdparty/x11/xi.nim @ 1218:56781cc0fc7c compiletime-tests

did: renamge main package
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:01:37 +0700
parents semicongine/old/thirdparty/x11/xi.nim@239adab121a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 # $Xorg: XI.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 #************************************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 #Copyright 1989, 1998 The Open Group
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 #Permission to use, copy, modify, distribute, and sell this software and its
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 #documentation for any purpose is hereby granted without fee, provided that
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 #the above copyright notice appear in all copies and that both that
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 #copyright notice and this permission notice appear in supporting
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 #documentation.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 #The above copyright notice and this permission notice shall be included in
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 #all copies or substantial portions of the Software.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 #OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 #AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 #CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 #Except as contained in this notice, the name of The Open Group shall not be
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 #used in advertising or otherwise to promote the sale, use or other dealings
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 #in this Software without prior written authorization from The Open Group.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 #Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30 # All Rights Reserved
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 #Permission to use, copy, modify, and distribute this software and its
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 #documentation for any purpose and without fee is hereby granted,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 #provided that the above copyright notice appear in all copies and that
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 #both that copyright notice and this permission notice appear in
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 #supporting documentation, and that the name of Hewlett-Packard not be
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 #used in advertising or publicity pertaining to distribution of the
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 #software without specific, written prior permission.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 #HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 #ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 #HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 #ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44 #WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 #ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 #SOFTWARE.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 #********************************************************/
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 # $XFree86: xc/include/extensions/XI.h,v 1.5 2001/12/14 19:53:28 dawes Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 # Definitions used by the server, library and client
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 # Pascal Convertion was made by Ido Kannner - kanerido@actcom.net.il
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 #Histroy:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 # 2004/10/15 - Fixed a bug of accessing second based records by removing "paced record" and chnaged it to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 # "reocrd" only.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 # 2004/10/07 - Removed the "uses X;" line. The unit does not need it.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 # 2004/10/03 - Conversion from C header to Pascal unit.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 libXi* = "libXi.so(|.6)"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 sz_xGetExtensionVersionReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 sz_xGetExtensionVersionReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 sz_xListInputDevicesReq* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 sz_xListInputDevicesReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70 sz_xOpenDeviceReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 sz_xOpenDeviceReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 sz_xCloseDeviceReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 sz_xSetDeviceModeReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 sz_xSetDeviceModeReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 sz_xSelectExtensionEventReq* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 sz_xGetSelectedExtensionEventsReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 sz_xGetSelectedExtensionEventsReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 sz_xChangeDeviceDontPropagateListReq* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 sz_xGetDeviceDontPropagateListReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 sz_xGetDeviceDontPropagateListReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 sz_xGetDeviceMotionEventsReq* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 sz_xGetDeviceMotionEventsReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 sz_xChangeKeyboardDeviceReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 sz_xChangeKeyboardDeviceReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 sz_xChangePointerDeviceReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 sz_xChangePointerDeviceReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 sz_xGrabDeviceReq* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 sz_xGrabDeviceReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 sz_xUngrabDeviceReq* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 sz_xGrabDeviceKeyReq* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 sz_xGrabDeviceKeyReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 sz_xUngrabDeviceKeyReq* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 sz_xGrabDeviceButtonReq* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 sz_xGrabDeviceButtonReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 sz_xUngrabDeviceButtonReq* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 sz_xAllowDeviceEventsReq* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 sz_xGetDeviceFocusReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 sz_xGetDeviceFocusReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 sz_xSetDeviceFocusReq* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 sz_xGetFeedbackControlReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 sz_xGetFeedbackControlReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 sz_xChangeFeedbackControlReq* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 sz_xGetDeviceKeyMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 sz_xGetDeviceKeyMappingReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 sz_xChangeDeviceKeyMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 sz_xGetDeviceModifierMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 sz_xSetDeviceModifierMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 sz_xSetDeviceModifierMappingReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 sz_xGetDeviceButtonMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 sz_xGetDeviceButtonMappingReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 sz_xSetDeviceButtonMappingReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 sz_xSetDeviceButtonMappingReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 sz_xQueryDeviceStateReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 sz_xQueryDeviceStateReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115 sz_xSendExtensionEventReq* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 sz_xDeviceBellReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 sz_xSetDeviceValuatorsReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 sz_xSetDeviceValuatorsReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 sz_xGetDeviceControlReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 sz_xGetDeviceControlReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 sz_xChangeDeviceControlReq* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 sz_xChangeDeviceControlReply* = 32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 INAME* = "XInputExtension"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 XI_KEYBOARD* = "KEYBOARD"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 XI_MOUSE* = "MOUSE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 XI_TABLET* = "TABLET"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 XI_TOUCHSCREEN* = "TOUCHSCREEN"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 XI_TOUCHPAD* = "TOUCHPAD"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 XI_BARCODE* = "BARCODE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 XI_BUTTONBOX* = "BUTTONBOX"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 XI_KNOB_BOX* = "KNOB_BOX"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 XI_ONE_KNOB* = "ONE_KNOB"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 XI_NINE_KNOB* = "NINE_KNOB"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 XI_TRACKBALL* = "TRACKBALL"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 XI_QUADRATURE* = "QUADRATURE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 XI_ID_MODULE* = "ID_MODULE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 XI_SPACEBALL* = "SPACEBALL"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 XI_DATAGLOVE* = "DATAGLOVE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 XI_EYETRACKER* = "EYETRACKER"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 XI_CURSORKEYS* = "CURSORKEYS"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 XI_FOOTMOUSE* = "FOOTMOUSE"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 Dont_Check* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149 XInput_Initial_Release* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 XInput_Add_XDeviceBell* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 XInput_Add_XSetDeviceValuators* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152 XInput_Add_XChangeDeviceControl* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155 XI_Absent* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 XI_Present* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 XI_Initial_Release_Major* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 XI_Initial_Release_Minor* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 XI_Add_XDeviceBell_Major* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 XI_Add_XDeviceBell_Minor* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 XI_Add_XSetDeviceValuators_Major* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 XI_Add_XSetDeviceValuators_Minor* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 XI_Add_XChangeDeviceControl_Major* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 XI_Add_XChangeDeviceControl_Minor* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 DEVICE_RESOLUTION* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 NoSuchExtension* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 COUNT* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 CREATE* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 NewPointer* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 NewKeyboard* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 XPOINTER* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 XKEYBOARD* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 UseXKeyboard* = 0x000000FF
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 IsXPointer* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 IsXKeyboard* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 IsXExtensionDevice* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 AsyncThisDevice* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 SyncThisDevice* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 ReplayThisDevice* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 AsyncOtherDevices* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 AsyncAll* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 SyncAll* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 FollowKeyboard* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 RevertToFollowKeyboard* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 DvAccelNum* = int(1) shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 DvAccelDenom* = int(1) shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 DvThreshold* = int(1) shl 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 DvKeyClickPercent* = int(1) shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 DvPercent* = int(1) shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 DvPitch* = int(1) shl 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 DvDuration* = int(1) shl 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 DvLed* = int(1) shl 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 DvLedMode* = int(1) shl 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 DvKey* = int(1) shl 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 DvAutoRepeatMode* = 1 shl 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 DvString* = int(1) shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 DvInteger* = int(1) shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 DeviceMode* = int(1) shl 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235 Relative* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 Absolute* = 1 # Merged from Metrolink tree for XINPUT stuff
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 TS_Raw* = 57
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238 TS_Scaled* = 58
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239 SendCoreEvents* = 59
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 DontSendCoreEvents* = 60 # End of merged section
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 ProximityState* = int(1) shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 InProximity* = int(0) shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 OutOfProximity* = int(1) shl 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 AddToList* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249 DeleteFromList* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
250
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
251 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
252 KeyClass* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
253 ButtonClass* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
254 ValuatorClass* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
255 FeedbackClass* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
256 ProximityClass* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
257 FocusClass* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
258 OtherClass* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
259
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
260 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
261 KbdFeedbackClass* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
262 PtrFeedbackClass* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
263 StringFeedbackClass* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
264 IntegerFeedbackClass* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
265 LedFeedbackClass* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
266 BellFeedbackClass* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
267
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
268 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
269 devicePointerMotionHint* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
270 deviceButton1Motion* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
271 deviceButton2Motion* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
272 deviceButton3Motion* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
273 deviceButton4Motion* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
274 deviceButton5Motion* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
275 deviceButtonMotion* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
276 deviceButtonGrab* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
277 deviceOwnerGrabButton* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
278 noExtensionEvent* = 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
279
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
280 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
281 XI_BadDevice* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
282 XI_BadEvent* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
283 XI_BadMode* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
284 XI_DeviceBusy* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
285 XI_BadClass* = 4 # Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
286 # definition of XEventClass since that would be a library interface change.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
287 # See the top of X.h for more _XSERVER64 magic.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
288 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
289
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
290 when defined(XSERVER64):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
291 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
292 XEventClass* = CARD32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
293 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
294 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
295 XEventClass* = int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
296 #******************************************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
297 # *
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
298 # * Extension version structure.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
299 # *
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
300 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
301
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
302 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
303 PXExtensionVersion* = ptr XExtensionVersion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
304 XExtensionVersion*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
305 present*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
306 major_version*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
307 minor_version*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
308
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
309 # implementation