1 /************************************************************
3 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the name of the above listed
12 copyright holder(s) not be used in advertising or publicity pertaining
13 to distribution of the software without specific, written prior
16 THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
17 TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
19 LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 ********************************************************/
26 /********************************************************************
27 * Interface of 'exevents.c'
33 extern void RegisterOtherDevice (
34 DeviceIntPtr
/* device */);
36 extern void ProcessOtherEvent (
37 xEventPtr
/* FIXME deviceKeyButtonPointer * xE */,
38 DeviceIntPtr
/* other */,
41 extern int InitProximityClassDeviceStruct(
42 DeviceIntPtr
/* dev */);
44 extern void InitValuatorAxisStruct(
45 DeviceIntPtr
/* dev */,
53 extern void DeviceFocusEvent(
54 DeviceIntPtr
/* dev */,
58 WindowPtr
/* pWin */);
60 extern int GrabButton(
61 ClientPtr
/* client */,
62 DeviceIntPtr
/* dev */,
63 BYTE
/* this_device_mode */,
64 BYTE
/* other_devices_mode */,
65 CARD16
/* modifiers */,
66 DeviceIntPtr
/* modifier_device */,
68 Window
/* grabWindow */,
69 BOOL
/* ownerEvents */,
71 Window
/* rconfineTo */,
72 Mask
/* eventMask */);
75 ClientPtr
/* client */,
76 DeviceIntPtr
/* dev */,
77 BYTE
/* this_device_mode */,
78 BYTE
/* other_devices_mode */,
79 CARD16
/* modifiers */,
80 DeviceIntPtr
/* modifier_device */,
82 Window
/* grabWindow */,
83 BOOL
/* ownerEvents */,
86 extern int SelectForWindow(
87 DeviceIntPtr
/* dev */,
89 ClientPtr
/* client */,
91 Mask
/* exclusivemasks */,
92 Mask
/* validmasks */);
94 extern int AddExtensionClient (
96 ClientPtr
/* client */,
100 extern void RecalculateDeviceDeliverableEvents(
101 WindowPtr
/* pWin */);
103 extern int InputClientGone(
104 WindowPtr
/* pWin */,
107 extern int SendEvent (
108 ClientPtr
/* client */,
109 DeviceIntPtr
/* d */,
111 Bool
/* propagate */,
116 extern int SetButtonMapping (
117 ClientPtr
/* client */,
118 DeviceIntPtr
/* dev */,
122 extern int SetModifierMapping(
123 ClientPtr
/* client */,
124 DeviceIntPtr
/* dev */,
127 int /* numKeyPerModifier */,
128 KeyCode
* /* inputMap */,
129 KeyClassPtr
* /* k */);
131 extern void SendDeviceMappingNotify(
132 CARD8
/* request, */,
133 KeyCode
/* firstKeyCode */,
135 DeviceIntPtr
/* dev */);
137 extern int ChangeKeyMapping(
138 ClientPtr
/* client */,
139 DeviceIntPtr
/* dev */,
142 KeyCode
/* firstKeyCode */,
143 CARD8
/* keyCodes */,
144 CARD8
/* keySymsPerKeyCode */,
147 extern void DeleteWindowFromAnyExtEvents(
148 WindowPtr
/* pWin */,
149 Bool
/* freeResources */);
151 extern int MaybeSendDeviceMotionNotifyHint (
152 deviceKeyButtonPointer
* /* pEvents */,
155 extern void CheckDeviceGrabAndHintWindow (
156 WindowPtr
/* pWin */,
158 deviceKeyButtonPointer
* /* xE */,
160 ClientPtr
/* client */,
161 Mask
/* deliveryMask */);
163 extern void MaybeStopDeviceHint(
164 DeviceIntPtr
/* dev */,
165 ClientPtr
/* client */);
167 extern int DeviceEventSuppressForWindow(
168 WindowPtr
/* pWin */,
169 ClientPtr
/* client */,
173 void SendEventToAllWindows(
174 DeviceIntPtr
/* dev */,
179 #endif /* EXEVENTS_H */