1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <meta http-equiv=
"Content-Type" content=
"text/html;charset=iso-8859-1">
5 <title>File Index
</title>
6 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class=
"qindex"><a class=
"qindex" href=
"main.html">Main
Page
</a> |
<a class=
"qindex" href=
"classes.html">Alphabetical
List
</a> |
<a class=
"qindex" href=
"annotated.html">Data
Structures
</a> |
<a class=
"qindex" href=
"files.html">File
List
</a> |
<a class=
"qindex" href=
"functions.html">Data
Fields
</a> |
<a class=
"qindex" href=
"globals.html">Globals
</a></div>
11 <h1>dmxmap.c File Reference
</h1><code>#include
"<a class="el
" href="dmxinputinit_8h-source.html
">dmxinputinit.h</a>"</code><br>
12 <code>#include
"<a class="el
" href="dmxmap_8h-source.html
">dmxmap.h</a>"</code><br>
13 <table border=
0 cellpadding=
0 cellspacing=
0>
15 <tr><td colspan=
2><br><h2>Functions
</h2></td></tr>
16 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>void
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxmap_8c.html#a0">dmxMapInsert
</a> (
<a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> dmxLocal, int remoteEvent, int serverEvent)
</td></tr>
18 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>void
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxmap_8c.html#a1">dmxMapClear
</a> (
<a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> dmxLocal)
</td></tr>
20 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>int
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxmap_8c.html#a2">dmxMapLookup
</a> (
<a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> dmxLocal, int remoteEvent)
</td></tr>
23 <hr><a name=
"_details"></a><h2>Detailed Description
</h2>
24 This file implements a mapping from remote XInput event types to Xdmx XInput event types.
<p>
25 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.
<p>
26 The client-side X11/extensions/XInput.h file defines macros with THE EXACT SAME Device* names!
<p>
27 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.
<hr><h2>Function Documentation
</h2>
28 <a class=
"anchor" name=
"a1" doxytag=
"dmxmap.c::dmxMapClear" ></a><p>
29 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
32 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
34 <td class=
"md" nowrap
valign=
"top"> void dmxMapClear
</td>
35 <td class=
"md" valign=
"top">(
</td>
36 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> </td>
37 <td class=
"mdname1" valign=
"top" nowrap
> <em>dmxLocal
</em> </td>
38 <td class=
"md" valign=
"top"> )
</td>
39 <td class=
"md" nowrap
></td>
46 <table cellspacing=
5 cellpadding=
0 border=
0>
54 Remove all mappings there were inserted with
<a class=
"el" href=
"dmxmap_8h.html#a0">dmxMapInsert
</a>.
</td>
57 <a class=
"anchor" name=
"a0" doxytag=
"dmxmap.c::dmxMapInsert" ></a><p>
58 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
61 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
63 <td class=
"md" nowrap
valign=
"top"> void dmxMapInsert
</td>
64 <td class=
"md" valign=
"top">(
</td>
65 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> </td>
66 <td class=
"mdname" nowrap
> <em>dmxLocal
</em>,
</td>
71 <td class=
"md" nowrap
>int
</td>
72 <td class=
"mdname" nowrap
> <em>remoteEvent
</em>,
</td>
77 <td class=
"md" nowrap
>int
</td>
78 <td class=
"mdname" nowrap
> <em>serverEvent
</em></td>
82 <td class=
"md">)
</td>
83 <td class=
"md" colspan=
"2"></td>
90 <table cellspacing=
5 cellpadding=
0 border=
0>
98 Create a mapping from
<em>remoteEvent
</em> to
<em>serverEvent
</em>. The
<em>remoteEvent
</em> is the type returned from the remote server. The
<em>serverEvent
</em> is from the XI_* list of events in include/extensions/XIproto.h.
</td>
101 <a class=
"anchor" name=
"a2" doxytag=
"dmxmap.c::dmxMapLookup" ></a><p>
102 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
105 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
107 <td class=
"md" nowrap
valign=
"top"> int dmxMapLookup
</td>
108 <td class=
"md" valign=
"top">(
</td>
109 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr
</a> </td>
110 <td class=
"mdname" nowrap
> <em>dmxLocal
</em>,
</td>
115 <td class=
"md" nowrap
>int
</td>
116 <td class=
"mdname" nowrap
> <em>remoteEvent
</em></td>
120 <td class=
"md">)
</td>
121 <td class=
"md" colspan=
"2"></td>
128 <table cellspacing=
5 cellpadding=
0 border=
0>
136 Lookup a mapping for
<em>remoteEvent
</em>. The
<em>remoteEvent
</em> is the type returned from the remote server. The return value is that which was passed into
<a class=
"el" href=
"dmxmap_8h.html#a0">dmxMapInsert
</a> (i.e., a value from the XI_* list in include/extensions/XIproto.h). If a mapping is not available, -
1 is returned.
</td>
142 Generated June
29,
2004 for
<a
143 href=
"http://dmx.sourceforge.net">Distributed Multihead X
</a> by
144 <a href=
"http://www.doxygen.org/index.html">doxygen
</a>