24 dawes 3.0
25 ********************************************************/
26
27 /********************************************************************
28 * Interface of 'exevents.c'
29 */
30
31 #ifndef EXEVENTS_H
32 #define EXEVENTS_H
33
34 void
35 RegisterOtherDevice (
36 #if NeedFunctionPrototypes
37 DeviceIntPtr /* device */
38 #endif
39 );
40
41 void
42 ProcessOtherEvent (
43 #if NeedFunctionPrototypes
44 xEventPtr /* FIXME deviceKeyButtonPointer * xE */,
45 dawes 3.0 DeviceIntPtr /* other */,
46 int /* count */
47 #endif
48 );
49
50 int
51 InitProximityClassDeviceStruct(
52 #if NeedFunctionPrototypes
53 DeviceIntPtr /* dev */
54 #endif
55 );
56
57 void
58 InitValuatorAxisStruct(
59 #if NeedFunctionPrototypes
60 DeviceIntPtr /* dev */,
61 int /* axnum */,
62 int /* minval */,
63 int /* maxval */,
64 int /* resolution */,
65 int /* min_res */,
66 dawes 3.0 int /* max_res */
67 #endif
68 );
69
70 void
71 DeviceFocusEvent(
72 #if NeedFunctionPrototypes
73 DeviceIntPtr /* dev */,
74 int /* type */,
75 int /* mode */,
76 int /* detail */,
77 WindowPtr /* pWin */
78 #endif
79 );
80
81 int
82 GrabButton(
83 #if NeedFunctionPrototypes
84 ClientPtr /* client */,
85 DeviceIntPtr /* dev */,
86 BYTE /* this_device_mode */,
87 dawes 3.0 BYTE /* other_devices_mode */,
88 CARD16 /* modifiers */,
89 DeviceIntPtr /* modifier_device */,
90 CARD8 /* button */,
91 Window /* grabWindow */,
92 BOOL /* ownerEvents */,
93 Cursor /* rcursor */,
94 Window /* rconfineTo */,
95 Mask /* eventMask */
96 #endif
97 );
98
99 int
100 GrabKey(
101 #if NeedFunctionPrototypes
102 ClientPtr /* client */,
103 DeviceIntPtr /* dev */,
104 BYTE /* this_device_mode */,
105 BYTE /* other_devices_mode */,
106 CARD16 /* modifiers */,
107 DeviceIntPtr /* modifier_device */,
108 dawes 3.0 CARD8 /* key */,
109 Window /* grabWindow */,
110 BOOL /* ownerEvents */,
111 Mask /* mask */
112 #endif
113 );
114
115 int
116 SelectForWindow(
117 #if NeedFunctionPrototypes
118 DeviceIntPtr /* dev */,
119 WindowPtr /* pWin */,
120 ClientPtr /* client */,
121 Mask /* mask */,
122 Mask /* exclusivemasks */,
123 Mask /* validmasks */
124 #endif
125 );
126
127 int
128 AddExtensionClient (
129 dawes 3.0 #if NeedFunctionPrototypes
130 WindowPtr /* pWin */,
131 ClientPtr /* client */,
132 Mask /* mask */,
133 int /* mskidx */
134 #endif
135 );
136
137 void
138 RecalculateDeviceDeliverableEvents(
139 #if NeedFunctionPrototypes
140 WindowPtr /* pWin */
141 #endif
142 );
143
144 int
145 InputClientGone(
146 #if NeedFunctionPrototypes
147 WindowPtr /* pWin */,
148 XID /* id */
149 #endif
150 dawes 3.0 );
151
152 int
153 SendEvent (
154 #if NeedFunctionPrototypes
155 ClientPtr /* client */,
156 DeviceIntPtr /* d */,
157 Window /* dest */,
158 Bool /* propagate */,
159 xEvent * /* ev */,
160 Mask /* mask */,
161 int /* count */
162 #endif
163 );
164
165 int
166 SetButtonMapping (
167 #if NeedFunctionPrototypes
168 ClientPtr /* client */,
169 DeviceIntPtr /* dev */,
170 int /* nElts */,
171 dawes 3.0 BYTE * /* map */
172 #endif
173 );
174
175 int
176 SetModifierMapping(
177 #if NeedFunctionPrototypes
178 ClientPtr /* client */,
179 DeviceIntPtr /* dev */,
180 int /* len */,
181 int /* rlen */,
182 int /* numKeyPerModifier */,
183 KeyCode * /* inputMap */,
184 KeyClassPtr * /* k */
185 #endif
186 );
187
188 void
189 SendDeviceMappingNotify(
190 #if NeedFunctionPrototypes
191 CARD8 /* request, */,
192 dawes 3.0 KeyCode /* firstKeyCode */,
193 CARD8 /* count */,
194 DeviceIntPtr /* dev */
195 #endif
196 );
197
198 int
199 ChangeKeyMapping(
200 #if NeedFunctionPrototypes
201 ClientPtr /* client */,
202 DeviceIntPtr /* dev */,
203 unsigned /* len */,
204 int /* type */,
205 KeyCode /* firstKeyCode */,
206 CARD8 /* keyCodes */,
207 CARD8 /* keySymsPerKeyCode */,
208 KeySym * /* map */
209 #endif
210 );
211
212 void
213 dawes 3.0 DeleteWindowFromAnyExtEvents(
214 #if NeedFunctionPrototypes
215 WindowPtr /* pWin */,
216 Bool /* freeResources */
217 #endif
218 );
219
220 void
221 DeleteDeviceFromAnyExtEvents(
222 #if NeedFunctionPrototypes
223 WindowPtr /* pWin */,
224 DeviceIntPtr /* dev */
225 #endif
226 );
227
228 int
229 MaybeSendDeviceMotionNotifyHint (
230 #if NeedFunctionPrototypes
231 deviceKeyButtonPointer * /* pEvents */,
232 Mask /* mask */
233 #endif
234 dawes 3.0 );
235
236 void
237 CheckDeviceGrabAndHintWindow (
238 #if NeedFunctionPrototypes
239 WindowPtr /* pWin */,
240 int /* type */,
241 deviceKeyButtonPointer * /* xE */,
242 GrabPtr /* grab */,
243 ClientPtr /* client */,
244 Mask /* deliveryMask */
245 #endif
246 );
247
248 Mask
249 DeviceEventMaskForClient(
250 #if NeedFunctionPrototypes
251 DeviceIntPtr /* dev */,
252 WindowPtr /* pWin */,
253 ClientPtr /* client */
254 #endif
255 dawes 3.0 );
256
257 void
258 MaybeStopDeviceHint(
259 #if NeedFunctionPrototypes
260 DeviceIntPtr /* dev */,
261 ClientPtr /* client */
262 #endif
263 );
264
265 int
266 DeviceEventSuppressForWindow(
267 #if NeedFunctionPrototypes
268 WindowPtr /* pWin */,
269 ClientPtr /* client */,
270 Mask /* mask */,
271 int /* maskndx */
272 #endif
273 );
274
275 #endif /* EXEVENTS_H */
|