1
/* $XFree86: xc/programs/Xserver/include/exevents.h,v 3.1 1996/04/15 11:34:29 dawes Exp $ */
2
/************************************************************
4
Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
8
Permission to use, copy, modify, and distribute this software and its
9
documentation for any purpose and without fee is hereby granted,
10
provided that the above copyright notice appear in all copies and that
11
both that copyright notice and this permission notice appear in
12
supporting documentation, and that the name of the above listed
13
copyright holder(s) not be used in advertising or publicity pertaining
14
to distribution of the software without specific, written prior
17
THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
18
TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
20
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
22
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
23
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
********************************************************/
27
/********************************************************************
28
* Interface of 'exevents.c'
34
extern void RegisterOtherDevice (
35
DeviceIntPtr /* device */);
37
extern void ProcessOtherEvent (
38
xEventPtr /* FIXME deviceKeyButtonPointer * xE */,
39
DeviceIntPtr /* other */,
42
extern int InitProximityClassDeviceStruct(
43
DeviceIntPtr /* dev */);
45
extern void InitValuatorAxisStruct(
46
DeviceIntPtr /* dev */,
54
extern void DeviceFocusEvent(
55
DeviceIntPtr /* dev */,
59
WindowPtr /* pWin */);
61
extern int GrabButton(
62
ClientPtr /* client */,
63
DeviceIntPtr /* dev */,
64
BYTE /* this_device_mode */,
65
BYTE /* other_devices_mode */,
66
CARD16 /* modifiers */,
67
DeviceIntPtr /* modifier_device */,
69
Window /* grabWindow */,
70
BOOL /* ownerEvents */,
72
Window /* rconfineTo */,
73
Mask /* eventMask */);
76
ClientPtr /* client */,
77
DeviceIntPtr /* dev */,
78
BYTE /* this_device_mode */,
79
BYTE /* other_devices_mode */,
80
CARD16 /* modifiers */,
81
DeviceIntPtr /* modifier_device */,
83
Window /* grabWindow */,
84
BOOL /* ownerEvents */,
87
extern int SelectForWindow(
88
DeviceIntPtr /* dev */,
90
ClientPtr /* client */,
92
Mask /* exclusivemasks */,
93
Mask /* validmasks */);
95
extern int AddExtensionClient (
97
ClientPtr /* client */,
101
extern void RecalculateDeviceDeliverableEvents(
102
WindowPtr /* pWin */);
104
extern int InputClientGone(
105
WindowPtr /* pWin */,
108
extern int SendEvent (
109
ClientPtr /* client */,
110
DeviceIntPtr /* d */,
112
Bool /* propagate */,
117
extern int SetButtonMapping (
118
ClientPtr /* client */,
119
DeviceIntPtr /* dev */,
123
extern int SetModifierMapping(
124
ClientPtr /* client */,
125
DeviceIntPtr /* dev */,
128
int /* numKeyPerModifier */,
129
KeyCode * /* inputMap */,
130
KeyClassPtr * /* k */);
132
extern void SendDeviceMappingNotify(
133
CARD8 /* request, */,
134
KeyCode /* firstKeyCode */,
136
DeviceIntPtr /* dev */);
138
extern int ChangeKeyMapping(
139
ClientPtr /* client */,
140
DeviceIntPtr /* dev */,
143
KeyCode /* firstKeyCode */,
144
CARD8 /* keyCodes */,
145
CARD8 /* keySymsPerKeyCode */,
148
extern void DeleteWindowFromAnyExtEvents(
149
WindowPtr /* pWin */,
150
Bool /* freeResources */);
152
extern void DeleteDeviceFromAnyExtEvents(
153
WindowPtr /* pWin */,
154
DeviceIntPtr /* dev */);
156
extern int MaybeSendDeviceMotionNotifyHint (
157
deviceKeyButtonPointer * /* pEvents */,
160
extern void CheckDeviceGrabAndHintWindow (
161
WindowPtr /* pWin */,
163
deviceKeyButtonPointer * /* xE */,
165
ClientPtr /* client */,
166
Mask /* deliveryMask */);
168
extern Mask DeviceEventMaskForClient(
169
DeviceIntPtr /* dev */,
170
WindowPtr /* pWin */,
171
ClientPtr /* client */);
173
extern void MaybeStopDeviceHint(
174
DeviceIntPtr /* dev */,
175
ClientPtr /* client */);
177
extern int DeviceEventSuppressForWindow(
178
WindowPtr /* pWin */,
179
ClientPtr /* client */,
183
#endif /* EXEVENTS_H */