This file implements a mapping from remote XInput event types to Xdmx XInput event types.
The exglobals.h file defines global server-side variables with names Device* to be integers that hold the value of the type of the server-side XInput extension event.
The client-side X11/extensions/XInput.h file defines macros with THE EXACT SAME Device* names!
Using those macros to extract remote server event type values from the (opaque) XDevice structure is appropriate, but makes a direct mapping to the Device* integers impossible. So we use the normalized XI_Device* names for these routines.
Create a mapping from remoteEvent to serverEvent. The remoteEvent is the type returned from the remote server. The serverEvent is from the XI_* list of events in include/extensions/XIproto.h.
Lookup a mapping for remoteEvent. The remoteEvent is the type returned from the remote server. The return value is that which was passed into dmxMapInsert (i.e., a value from the XI_* list in include/extensions/XIproto.h). If a mapping is not available, -1 is returned.
Generated June 29, 2004 for Distributed Multihead X by
doxygen
1.3.4.
@
1.1
log
@Initial revision
@
text
@@
1.1.1.1
log
@Import of XFree86 4.5.0.
@
text
@@
1.1.1.1.2.1
log
@file dmxmap_8c.html was added on branch netbsd-3 on 2005-04-06 20:00:30 +0000
@
text
@d1 150
@
1.1.1.1.2.2
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@a0 150
File Index
This file implements a mapping from remote XInput event types to Xdmx XInput event types.
The exglobals.h file defines global server-side variables with names Device* to be integers that hold the value of the type of the server-side XInput extension event.
The client-side X11/extensions/XInput.h file defines macros with THE EXACT SAME Device* names!
Using those macros to extract remote server event type values from the (opaque) XDevice structure is appropriate, but makes a direct mapping to the Device* integers impossible. So we use the normalized XI_Device* names for these routines.
Create a mapping from remoteEvent to serverEvent. The remoteEvent is the type returned from the remote server. The serverEvent is from the XI_* list of events in include/extensions/XIproto.h.
Lookup a mapping for remoteEvent. The remoteEvent is the type returned from the remote server. The return value is that which was passed into dmxMapInsert (i.e., a value from the XI_* list in include/extensions/XIproto.h). If a mapping is not available, -1 is returned.