First import
[xorg_rtime.git] / xorg-server-1.4 / hw / dmx / doc / html / dmxmap_8c.html
blobb4230ca3047f881847e52b63811572a183a6df9d
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
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">
7 </head>
8 <body>
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;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>
14 <tr><td></td></tr>
15 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
16 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</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&nbsp;</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&nbsp;</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>
22 </table>
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">
30 <tr>
31 <td class="mdRow">
32 <table cellpadding="0" cellspacing="0" border="0">
33 <tr>
34 <td class="md" nowrap valign="top"> void dmxMapClear </td>
35 <td class="md" valign="top">(&nbsp;</td>
36 <td class="md" nowrap valign="top"><a class="el" href="struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr</a>&nbsp;</td>
37 <td class="mdname1" valign="top" nowrap> <em>dmxLocal</em> </td>
38 <td class="md" valign="top">&nbsp;)&nbsp;</td>
39 <td class="md" nowrap></td>
40 </tr>
42 </table>
43 </td>
44 </tr>
45 </table>
46 <table cellspacing=5 cellpadding=0 border=0>
47 <tr>
48 <td>
49 &nbsp;
50 </td>
51 <td>
53 <p>
54 Remove all mappings there were inserted with <a class="el" href="dmxmap_8h.html#a0">dmxMapInsert</a>. </td>
55 </tr>
56 </table>
57 <a class="anchor" name="a0" doxytag="dmxmap.c::dmxMapInsert" ></a><p>
58 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
59 <tr>
60 <td class="mdRow">
61 <table cellpadding="0" cellspacing="0" border="0">
62 <tr>
63 <td class="md" nowrap valign="top"> void dmxMapInsert </td>
64 <td class="md" valign="top">(&nbsp;</td>
65 <td class="md" nowrap valign="top"><a class="el" href="struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr</a>&nbsp;</td>
66 <td class="mdname" nowrap> <em>dmxLocal</em>, </td>
67 </tr>
68 <tr>
69 <td></td>
70 <td></td>
71 <td class="md" nowrap>int&nbsp;</td>
72 <td class="mdname" nowrap> <em>remoteEvent</em>, </td>
73 </tr>
74 <tr>
75 <td></td>
76 <td></td>
77 <td class="md" nowrap>int&nbsp;</td>
78 <td class="mdname" nowrap> <em>serverEvent</em></td>
79 </tr>
80 <tr>
81 <td></td>
82 <td class="md">)&nbsp;</td>
83 <td class="md" colspan="2"></td>
84 </tr>
86 </table>
87 </td>
88 </tr>
89 </table>
90 <table cellspacing=5 cellpadding=0 border=0>
91 <tr>
92 <td>
93 &nbsp;
94 </td>
95 <td>
97 <p>
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>
99 </tr>
100 </table>
101 <a class="anchor" name="a2" doxytag="dmxmap.c::dmxMapLookup" ></a><p>
102 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
103 <tr>
104 <td class="mdRow">
105 <table cellpadding="0" cellspacing="0" border="0">
106 <tr>
107 <td class="md" nowrap valign="top"> int dmxMapLookup </td>
108 <td class="md" valign="top">(&nbsp;</td>
109 <td class="md" nowrap valign="top"><a class="el" href="struct__DMXLocalInputInfo.html">DMXLocalInputInfoPtr</a>&nbsp;</td>
110 <td class="mdname" nowrap> <em>dmxLocal</em>, </td>
111 </tr>
112 <tr>
113 <td></td>
114 <td></td>
115 <td class="md" nowrap>int&nbsp;</td>
116 <td class="mdname" nowrap> <em>remoteEvent</em></td>
117 </tr>
118 <tr>
119 <td></td>
120 <td class="md">)&nbsp;</td>
121 <td class="md" colspan="2"></td>
122 </tr>
124 </table>
125 </td>
126 </tr>
127 </table>
128 <table cellspacing=5 cellpadding=0 border=0>
129 <tr>
130 <td>
131 &nbsp;
132 </td>
133 <td>
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>
137 </tr>
138 </table>
139 <hr>
140 <address>
141 <small>
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>
145 1.3.4.
146 </small>
147 </addres>
148 </hr>
149 </body>
150 </html>