First import
[xorg_rtime.git] / xorg-server-1.4 / hw / dmx / doc / html / dmxcommon_8c.html
blob3e0459c1254e3ca45323e54855e0c1ab21dc4bcb
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>dmxcommon.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="dmxcommon_8h-source.html">dmxcommon.h</a>"</code><br>
13 <code>#include "<a class="el" href="dmxconsole_8h-source.html">dmxconsole.h</a>"</code><br>
14 <code>#include "<a class="el" href="dmxprop_8h-source.html">dmxprop.h</a>"</code><br>
15 <code>#include "<a class="el" href="dmxsync_8h-source.html">dmxsync.h</a>"</code><br>
16 <code>#include "<a class="el" href="dmxmap_8h-source.html">dmxmap.h</a>"</code><br>
17 <code>#include "inputstr.h"</code><br>
18 <code>#include "input.h"</code><br>
19 <code>#include "keysym.h"</code><br>
20 <code>#include "mipointer.h"</code><br>
21 <code>#include "scrnintstr.h"</code><br>
22 <code>#include &lt;unistd.h&gt;</code><br>
23 <table border=0 cellpadding=0 cellspacing=0>
24 <tr><td></td></tr>
25 <tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
26 <tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="struct__myPrivate.html">_myPrivate</a></td></tr>
28 <tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
29 <tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="struct__myPrivate.html">_myPrivate</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a4">myPrivate</a></td></tr>
31 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
32 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a9">dmxCommonKbdCtrl</a> (DevicePtr pDev, KeybdCtrl *ctrl)</td></tr>
34 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a10">dmxCommonMouCtrl</a> (DevicePtr pDev, PtrCtrl *ctrl)</td></tr>
36 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a11">dmxCommonKbdBell</a> (DevicePtr pDev, int percent, int volume, int pitch, int duration)</td></tr>
38 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a12">dmxCommonKbdGetMap</a> (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)</td></tr>
40 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a13">dmxCommonKbdGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr>
42 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a14">dmxCommonKbdOn</a> (DevicePtr pDev)</td></tr>
44 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a15">dmxCommonKbdOff</a> (DevicePtr pDev)</td></tr>
46 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a16">dmxCommonOthOn</a> (DevicePtr pDev)</td></tr>
48 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a17">dmxCommonOthOff</a> (DevicePtr pDev)</td></tr>
50 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a18">dmxCommonOthGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr>
52 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a19">dmxCommonMouGetMap</a> (DevicePtr pDev, unsigned char *map, int *nButtons)</td></tr>
54 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a23">dmxCommonMouOn</a> (DevicePtr pDev)</td></tr>
56 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a24">dmxCommonMouOff</a> (DevicePtr pDev)</td></tr>
58 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a25">dmxFindPointerScreen</a> (int x, int y)</td></tr>
60 <tr><td class="memItemLeft" nowrap align=right valign=top>pointer&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a26">dmxCommonCopyPrivate</a> (DeviceIntPtr pDevice)</td></tr>
62 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a27">dmxCommonSaveState</a> (pointer private)</td></tr>
64 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxcommon_8c.html#a28">dmxCommonRestoreState</a> (pointer private)</td></tr>
66 </table>
67 <hr><a name="_details"></a><h2>Detailed Description</h2>
68 This file implements common routines used by the backend and console input devices.<hr><h2>Typedef Documentation</h2>
69 <a class="anchor" name="a4" doxytag="dmxcommon.c::myPrivate" ></a><p>
70 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
71 <tr>
72 <td class="mdRow">
73 <table cellpadding="0" cellspacing="0" border="0">
74 <tr>
75 <td class="md" nowrap valign="top"> typedef struct <a class="el" href="struct__myPrivate.html">_myPrivate</a> <a class="el" href="struct__myPrivate.html">myPrivate</a>
76 </table>
77 </td>
78 </tr>
79 </table>
80 <table cellspacing=5 cellpadding=0 border=0>
81 <tr>
82 <td>
83 &nbsp;
84 </td>
85 <td>
87 <p>
88 Each device has a private area that is visible only from inside the driver code. </td>
89 </tr>
90 </table>
91 <hr><h2>Function Documentation</h2>
92 <a class="anchor" name="a26" doxytag="dmxcommon.c::dmxCommonCopyPrivate" ></a><p>
93 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
94 <tr>
95 <td class="mdRow">
96 <table cellpadding="0" cellspacing="0" border="0">
97 <tr>
98 <td class="md" nowrap valign="top"> pointer dmxCommonCopyPrivate </td>
99 <td class="md" valign="top">(&nbsp;</td>
100 <td class="md" nowrap valign="top">DeviceIntPtr&nbsp;</td>
101 <td class="mdname1" valign="top" nowrap> <em>pDevice</em> </td>
102 <td class="md" valign="top">&nbsp;)&nbsp;</td>
103 <td class="md" nowrap></td>
104 </tr>
106 </table>
107 </td>
108 </tr>
109 </table>
110 <table cellspacing=5 cellpadding=0 border=0>
111 <tr>
112 <td>
113 &nbsp;
114 </td>
115 <td>
118 Returns a pointer to the private area for the device that comes just prior to <em>pDevice</em> in the current <em>dmxInput</em> device list. This is used as the private area for the current device in some situations (e.g., when a keyboard and mouse form a pair that should share the same private area). If the requested private area cannot be located, then NULL is returned. </td>
119 </tr>
120 </table>
121 <a class="anchor" name="a11" doxytag="dmxcommon.c::dmxCommonKbdBell" ></a><p>
122 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
123 <tr>
124 <td class="mdRow">
125 <table cellpadding="0" cellspacing="0" border="0">
126 <tr>
127 <td class="md" nowrap valign="top"> void dmxCommonKbdBell </td>
128 <td class="md" valign="top">(&nbsp;</td>
129 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
130 <td class="mdname" nowrap> <em>pDev</em>, </td>
131 </tr>
132 <tr>
133 <td></td>
134 <td></td>
135 <td class="md" nowrap>int&nbsp;</td>
136 <td class="mdname" nowrap> <em>percent</em>, </td>
137 </tr>
138 <tr>
139 <td></td>
140 <td></td>
141 <td class="md" nowrap>int&nbsp;</td>
142 <td class="mdname" nowrap> <em>volume</em>, </td>
143 </tr>
144 <tr>
145 <td></td>
146 <td></td>
147 <td class="md" nowrap>int&nbsp;</td>
148 <td class="mdname" nowrap> <em>pitch</em>, </td>
149 </tr>
150 <tr>
151 <td></td>
152 <td></td>
153 <td class="md" nowrap>int&nbsp;</td>
154 <td class="mdname" nowrap> <em>duration</em></td>
155 </tr>
156 <tr>
157 <td></td>
158 <td class="md">)&nbsp;</td>
159 <td class="md" colspan="2"></td>
160 </tr>
162 </table>
163 </td>
164 </tr>
165 </table>
166 <table cellspacing=5 cellpadding=0 border=0>
167 <tr>
168 <td>
169 &nbsp;
170 </td>
171 <td>
174 Sound they keyboard bell. </td>
175 </tr>
176 </table>
177 <a class="anchor" name="a9" doxytag="dmxcommon.c::dmxCommonKbdCtrl" ></a><p>
178 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
179 <tr>
180 <td class="mdRow">
181 <table cellpadding="0" cellspacing="0" border="0">
182 <tr>
183 <td class="md" nowrap valign="top"> void dmxCommonKbdCtrl </td>
184 <td class="md" valign="top">(&nbsp;</td>
185 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
186 <td class="mdname" nowrap> <em>pDev</em>, </td>
187 </tr>
188 <tr>
189 <td></td>
190 <td></td>
191 <td class="md" nowrap>KeybdCtrl *&nbsp;</td>
192 <td class="mdname" nowrap> <em>ctrl</em></td>
193 </tr>
194 <tr>
195 <td></td>
196 <td class="md">)&nbsp;</td>
197 <td class="md" colspan="2"></td>
198 </tr>
200 </table>
201 </td>
202 </tr>
203 </table>
204 <table cellspacing=5 cellpadding=0 border=0>
205 <tr>
206 <td>
207 &nbsp;
208 </td>
209 <td>
212 Update the keyboard control. </td>
213 </tr>
214 </table>
215 <a class="anchor" name="a13" doxytag="dmxcommon.c::dmxCommonKbdGetInfo" ></a><p>
216 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
217 <tr>
218 <td class="mdRow">
219 <table cellpadding="0" cellspacing="0" border="0">
220 <tr>
221 <td class="md" nowrap valign="top"> void dmxCommonKbdGetInfo </td>
222 <td class="md" valign="top">(&nbsp;</td>
223 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
224 <td class="mdname" nowrap> <em>pDev</em>, </td>
225 </tr>
226 <tr>
227 <td></td>
228 <td></td>
229 <td class="md" nowrap><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a>&nbsp;</td>
230 <td class="mdname" nowrap> <em>info</em></td>
231 </tr>
232 <tr>
233 <td></td>
234 <td class="md">)&nbsp;</td>
235 <td class="md" colspan="2"></td>
236 </tr>
238 </table>
239 </td>
240 </tr>
241 </table>
242 <table cellspacing=5 cellpadding=0 border=0>
243 <tr>
244 <td>
245 &nbsp;
246 </td>
247 <td>
250 Fill in the XKEYBOARD parts of the <em>info</em> structure for the specified <em>pDev</em>. </td>
251 </tr>
252 </table>
253 <a class="anchor" name="a12" doxytag="dmxcommon.c::dmxCommonKbdGetMap" ></a><p>
254 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
255 <tr>
256 <td class="mdRow">
257 <table cellpadding="0" cellspacing="0" border="0">
258 <tr>
259 <td class="md" nowrap valign="top"> void dmxCommonKbdGetMap </td>
260 <td class="md" valign="top">(&nbsp;</td>
261 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
262 <td class="mdname" nowrap> <em>pDev</em>, </td>
263 </tr>
264 <tr>
265 <td></td>
266 <td></td>
267 <td class="md" nowrap>KeySymsPtr&nbsp;</td>
268 <td class="mdname" nowrap> <em>pKeySyms</em>, </td>
269 </tr>
270 <tr>
271 <td></td>
272 <td></td>
273 <td class="md" nowrap>CARD8 *&nbsp;</td>
274 <td class="mdname" nowrap> <em>pModMap</em></td>
275 </tr>
276 <tr>
277 <td></td>
278 <td class="md">)&nbsp;</td>
279 <td class="md" colspan="2"></td>
280 </tr>
282 </table>
283 </td>
284 </tr>
285 </table>
286 <table cellspacing=5 cellpadding=0 border=0>
287 <tr>
288 <td>
289 &nbsp;
290 </td>
291 <td>
294 Get the keyboard mapping. </td>
295 </tr>
296 </table>
297 <a class="anchor" name="a15" doxytag="dmxcommon.c::dmxCommonKbdOff" ></a><p>
298 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
299 <tr>
300 <td class="mdRow">
301 <table cellpadding="0" cellspacing="0" border="0">
302 <tr>
303 <td class="md" nowrap valign="top"> void dmxCommonKbdOff </td>
304 <td class="md" valign="top">(&nbsp;</td>
305 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
306 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
307 <td class="md" valign="top">&nbsp;)&nbsp;</td>
308 <td class="md" nowrap></td>
309 </tr>
311 </table>
312 </td>
313 </tr>
314 </table>
315 <table cellspacing=5 cellpadding=0 border=0>
316 <tr>
317 <td>
318 &nbsp;
319 </td>
320 <td>
323 Turn <em>pDev</em> off. </td>
324 </tr>
325 </table>
326 <a class="anchor" name="a14" doxytag="dmxcommon.c::dmxCommonKbdOn" ></a><p>
327 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
328 <tr>
329 <td class="mdRow">
330 <table cellpadding="0" cellspacing="0" border="0">
331 <tr>
332 <td class="md" nowrap valign="top"> int dmxCommonKbdOn </td>
333 <td class="md" valign="top">(&nbsp;</td>
334 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
335 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
336 <td class="md" valign="top">&nbsp;)&nbsp;</td>
337 <td class="md" nowrap></td>
338 </tr>
340 </table>
341 </td>
342 </tr>
343 </table>
344 <table cellspacing=5 cellpadding=0 border=0>
345 <tr>
346 <td>
347 &nbsp;
348 </td>
349 <td>
352 Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td>
353 </tr>
354 </table>
355 <a class="anchor" name="a10" doxytag="dmxcommon.c::dmxCommonMouCtrl" ></a><p>
356 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
357 <tr>
358 <td class="mdRow">
359 <table cellpadding="0" cellspacing="0" border="0">
360 <tr>
361 <td class="md" nowrap valign="top"> void dmxCommonMouCtrl </td>
362 <td class="md" valign="top">(&nbsp;</td>
363 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
364 <td class="mdname" nowrap> <em>pDev</em>, </td>
365 </tr>
366 <tr>
367 <td></td>
368 <td></td>
369 <td class="md" nowrap>PtrCtrl *&nbsp;</td>
370 <td class="mdname" nowrap> <em>ctrl</em></td>
371 </tr>
372 <tr>
373 <td></td>
374 <td class="md">)&nbsp;</td>
375 <td class="md" colspan="2"></td>
376 </tr>
378 </table>
379 </td>
380 </tr>
381 </table>
382 <table cellspacing=5 cellpadding=0 border=0>
383 <tr>
384 <td>
385 &nbsp;
386 </td>
387 <td>
390 Update the mouse control. </td>
391 </tr>
392 </table>
393 <a class="anchor" name="a19" doxytag="dmxcommon.c::dmxCommonMouGetMap" ></a><p>
394 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
395 <tr>
396 <td class="mdRow">
397 <table cellpadding="0" cellspacing="0" border="0">
398 <tr>
399 <td class="md" nowrap valign="top"> void dmxCommonMouGetMap </td>
400 <td class="md" valign="top">(&nbsp;</td>
401 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
402 <td class="mdname" nowrap> <em>pDev</em>, </td>
403 </tr>
404 <tr>
405 <td></td>
406 <td></td>
407 <td class="md" nowrap>unsigned char *&nbsp;</td>
408 <td class="mdname" nowrap> <em>map</em>, </td>
409 </tr>
410 <tr>
411 <td></td>
412 <td></td>
413 <td class="md" nowrap>int *&nbsp;</td>
414 <td class="mdname" nowrap> <em>nButtons</em></td>
415 </tr>
416 <tr>
417 <td></td>
418 <td class="md">)&nbsp;</td>
419 <td class="md" colspan="2"></td>
420 </tr>
422 </table>
423 </td>
424 </tr>
425 </table>
426 <table cellspacing=5 cellpadding=0 border=0>
427 <tr>
428 <td>
429 &nbsp;
430 </td>
431 <td>
434 Obtain the mouse button mapping. </td>
435 </tr>
436 </table>
437 <a class="anchor" name="a24" doxytag="dmxcommon.c::dmxCommonMouOff" ></a><p>
438 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
439 <tr>
440 <td class="mdRow">
441 <table cellpadding="0" cellspacing="0" border="0">
442 <tr>
443 <td class="md" nowrap valign="top"> void dmxCommonMouOff </td>
444 <td class="md" valign="top">(&nbsp;</td>
445 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
446 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
447 <td class="md" valign="top">&nbsp;)&nbsp;</td>
448 <td class="md" nowrap></td>
449 </tr>
451 </table>
452 </td>
453 </tr>
454 </table>
455 <table cellspacing=5 cellpadding=0 border=0>
456 <tr>
457 <td>
458 &nbsp;
459 </td>
460 <td>
463 Turn <em>pDev</em> off. </td>
464 </tr>
465 </table>
466 <a class="anchor" name="a23" doxytag="dmxcommon.c::dmxCommonMouOn" ></a><p>
467 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
468 <tr>
469 <td class="mdRow">
470 <table cellpadding="0" cellspacing="0" border="0">
471 <tr>
472 <td class="md" nowrap valign="top"> int dmxCommonMouOn </td>
473 <td class="md" valign="top">(&nbsp;</td>
474 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
475 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
476 <td class="md" valign="top">&nbsp;)&nbsp;</td>
477 <td class="md" nowrap></td>
478 </tr>
480 </table>
481 </td>
482 </tr>
483 </table>
484 <table cellspacing=5 cellpadding=0 border=0>
485 <tr>
486 <td>
487 &nbsp;
488 </td>
489 <td>
492 Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td>
493 </tr>
494 </table>
495 <a class="anchor" name="a18" doxytag="dmxcommon.c::dmxCommonOthGetInfo" ></a><p>
496 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
497 <tr>
498 <td class="mdRow">
499 <table cellpadding="0" cellspacing="0" border="0">
500 <tr>
501 <td class="md" nowrap valign="top"> void dmxCommonOthGetInfo </td>
502 <td class="md" valign="top">(&nbsp;</td>
503 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
504 <td class="mdname" nowrap> <em>pDev</em>, </td>
505 </tr>
506 <tr>
507 <td></td>
508 <td></td>
509 <td class="md" nowrap><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a>&nbsp;</td>
510 <td class="mdname" nowrap> <em>info</em></td>
511 </tr>
512 <tr>
513 <td></td>
514 <td class="md">)&nbsp;</td>
515 <td class="md" colspan="2"></td>
516 </tr>
518 </table>
519 </td>
520 </tr>
521 </table>
522 <table cellspacing=5 cellpadding=0 border=0>
523 <tr>
524 <td>
525 &nbsp;
526 </td>
527 <td>
530 Fill the <em>info</em> structure with information needed to initialize <em>pDev</em>. </td>
531 </tr>
532 </table>
533 <a class="anchor" name="a17" doxytag="dmxcommon.c::dmxCommonOthOff" ></a><p>
534 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
535 <tr>
536 <td class="mdRow">
537 <table cellpadding="0" cellspacing="0" border="0">
538 <tr>
539 <td class="md" nowrap valign="top"> void dmxCommonOthOff </td>
540 <td class="md" valign="top">(&nbsp;</td>
541 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
542 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
543 <td class="md" valign="top">&nbsp;)&nbsp;</td>
544 <td class="md" nowrap></td>
545 </tr>
547 </table>
548 </td>
549 </tr>
550 </table>
551 <table cellspacing=5 cellpadding=0 border=0>
552 <tr>
553 <td>
554 &nbsp;
555 </td>
556 <td>
559 Turn <em>pDev</em> off. </td>
560 </tr>
561 </table>
562 <a class="anchor" name="a16" doxytag="dmxcommon.c::dmxCommonOthOn" ></a><p>
563 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
564 <tr>
565 <td class="mdRow">
566 <table cellpadding="0" cellspacing="0" border="0">
567 <tr>
568 <td class="md" nowrap valign="top"> int dmxCommonOthOn </td>
569 <td class="md" valign="top">(&nbsp;</td>
570 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
571 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
572 <td class="md" valign="top">&nbsp;)&nbsp;</td>
573 <td class="md" nowrap></td>
574 </tr>
576 </table>
577 </td>
578 </tr>
579 </table>
580 <table cellspacing=5 cellpadding=0 border=0>
581 <tr>
582 <td>
583 &nbsp;
584 </td>
585 <td>
588 Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td>
589 </tr>
590 </table>
591 <a class="anchor" name="a28" doxytag="dmxcommon.c::dmxCommonRestoreState" ></a><p>
592 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
593 <tr>
594 <td class="mdRow">
595 <table cellpadding="0" cellspacing="0" border="0">
596 <tr>
597 <td class="md" nowrap valign="top"> void dmxCommonRestoreState </td>
598 <td class="md" valign="top">(&nbsp;</td>
599 <td class="md" nowrap valign="top">pointer&nbsp;</td>
600 <td class="mdname1" valign="top" nowrap> <em>private</em> </td>
601 <td class="md" valign="top">&nbsp;)&nbsp;</td>
602 <td class="md" nowrap></td>
603 </tr>
605 </table>
606 </td>
607 </tr>
608 </table>
609 <table cellspacing=5 cellpadding=0 border=0>
610 <tr>
611 <td>
612 &nbsp;
613 </td>
614 <td>
617 This routine restores all the information saved by <a class="el" href="dmxcommon_8h.html#a28">dmxCommonSaveState</a>. </td>
618 </tr>
619 </table>
620 <a class="anchor" name="a27" doxytag="dmxcommon.c::dmxCommonSaveState" ></a><p>
621 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
622 <tr>
623 <td class="mdRow">
624 <table cellpadding="0" cellspacing="0" border="0">
625 <tr>
626 <td class="md" nowrap valign="top"> void dmxCommonSaveState </td>
627 <td class="md" valign="top">(&nbsp;</td>
628 <td class="md" nowrap valign="top">pointer&nbsp;</td>
629 <td class="mdname1" valign="top" nowrap> <em>private</em> </td>
630 <td class="md" valign="top">&nbsp;)&nbsp;</td>
631 <td class="md" nowrap></td>
632 </tr>
634 </table>
635 </td>
636 </tr>
637 </table>
638 <table cellspacing=5 cellpadding=0 border=0>
639 <tr>
640 <td>
641 &nbsp;
642 </td>
643 <td>
646 This routine saves and resets some important state for the backend and console device drivers:<ul>
647 <li>the modifier map is saved and set to 0 (so DMX controls the LEDs)</li><li>the key click, bell, led, and repeat masks are saved and set to the values that DMX claims to be using</li></ul>
649 This routine and <a class="el" href="dmxcommon_8h.html#a29">dmxCommonRestoreState</a> are used when the pointer enters and leaves the console window, or when the backend window is active or not active (for a full-screen window, this only happens at server startup and server shutdown). </td>
650 </tr>
651 </table>
652 <a class="anchor" name="a25" doxytag="dmxcommon.c::dmxFindPointerScreen" ></a><p>
653 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
654 <tr>
655 <td class="mdRow">
656 <table cellpadding="0" cellspacing="0" border="0">
657 <tr>
658 <td class="md" nowrap valign="top"> int dmxFindPointerScreen </td>
659 <td class="md" valign="top">(&nbsp;</td>
660 <td class="md" nowrap valign="top">int&nbsp;</td>
661 <td class="mdname" nowrap> <em>x</em>, </td>
662 </tr>
663 <tr>
664 <td></td>
665 <td></td>
666 <td class="md" nowrap>int&nbsp;</td>
667 <td class="mdname" nowrap> <em>y</em></td>
668 </tr>
669 <tr>
670 <td></td>
671 <td class="md">)&nbsp;</td>
672 <td class="md" colspan="2"></td>
673 </tr>
675 </table>
676 </td>
677 </tr>
678 </table>
679 <table cellspacing=5 cellpadding=0 border=0>
680 <tr>
681 <td>
682 &nbsp;
683 </td>
684 <td>
687 Given the global coordinates <em>x</em> and <em>y</em>, determine the screen with the lowest number on which those coordinates lie. If they are not on any screen, return -1. The number returned is an index into #dmxScreenInfo and is between -1 and <a class="el" href="dmxinit_8c.html#a1">dmxNumScreens</a> - 1, inclusive. </td>
688 </tr>
689 </table>
690 <hr>
691 <address>
692 <small>
693 Generated June 29, 2004 for <a
694 href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
695 <a href="http://www.doxygen.org/index.html">doxygen</a>
696 1.3.4.
697 </small>
698 </addres>
699 </hr>
700 </body>
701 </html>