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>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
<unistd.h
></code><br>
23 <table border=
0 cellpadding=
0 cellspacing=
0>
25 <tr><td colspan=
2><br><h2>Data Structures
</h2></td></tr>
26 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>struct
</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> </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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</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
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxcommon_8c.html#a28">dmxCommonRestoreState
</a> (pointer private)
</td></tr>
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">
73 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
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>
80 <table cellspacing=
5 cellpadding=
0 border=
0>
88 Each device has a private area that is visible only from inside the driver code.
</td>
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">
96 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
98 <td class=
"md" nowrap
valign=
"top"> pointer dmxCommonCopyPrivate
</td>
99 <td class=
"md" valign=
"top">(
</td>
100 <td class=
"md" nowrap
valign=
"top">DeviceIntPtr
</td>
101 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDevice
</em> </td>
102 <td class=
"md" valign=
"top"> )
</td>
103 <td class=
"md" nowrap
></td>
110 <table cellspacing=
5 cellpadding=
0 border=
0>
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>
121 <a class=
"anchor" name=
"a11" doxytag=
"dmxcommon.c::dmxCommonKbdBell" ></a><p>
122 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
125 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
127 <td class=
"md" nowrap
valign=
"top"> void dmxCommonKbdBell
</td>
128 <td class=
"md" valign=
"top">(
</td>
129 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
130 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
135 <td class=
"md" nowrap
>int
</td>
136 <td class=
"mdname" nowrap
> <em>percent
</em>,
</td>
141 <td class=
"md" nowrap
>int
</td>
142 <td class=
"mdname" nowrap
> <em>volume
</em>,
</td>
147 <td class=
"md" nowrap
>int
</td>
148 <td class=
"mdname" nowrap
> <em>pitch
</em>,
</td>
153 <td class=
"md" nowrap
>int
</td>
154 <td class=
"mdname" nowrap
> <em>duration
</em></td>
158 <td class=
"md">)
</td>
159 <td class=
"md" colspan=
"2"></td>
166 <table cellspacing=
5 cellpadding=
0 border=
0>
174 Sound they keyboard bell.
</td>
177 <a class=
"anchor" name=
"a9" doxytag=
"dmxcommon.c::dmxCommonKbdCtrl" ></a><p>
178 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
181 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
183 <td class=
"md" nowrap
valign=
"top"> void dmxCommonKbdCtrl
</td>
184 <td class=
"md" valign=
"top">(
</td>
185 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
186 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
191 <td class=
"md" nowrap
>KeybdCtrl *
</td>
192 <td class=
"mdname" nowrap
> <em>ctrl
</em></td>
196 <td class=
"md">)
</td>
197 <td class=
"md" colspan=
"2"></td>
204 <table cellspacing=
5 cellpadding=
0 border=
0>
212 Update the keyboard control.
</td>
215 <a class=
"anchor" name=
"a13" doxytag=
"dmxcommon.c::dmxCommonKbdGetInfo" ></a><p>
216 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
219 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
221 <td class=
"md" nowrap
valign=
"top"> void dmxCommonKbdGetInfo
</td>
222 <td class=
"md" valign=
"top">(
</td>
223 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
224 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
229 <td class=
"md" nowrap
><a class=
"el" href=
"struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr
</a> </td>
230 <td class=
"mdname" nowrap
> <em>info
</em></td>
234 <td class=
"md">)
</td>
235 <td class=
"md" colspan=
"2"></td>
242 <table cellspacing=
5 cellpadding=
0 border=
0>
250 Fill in the XKEYBOARD parts of the
<em>info
</em> structure for the specified
<em>pDev
</em>.
</td>
253 <a class=
"anchor" name=
"a12" doxytag=
"dmxcommon.c::dmxCommonKbdGetMap" ></a><p>
254 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
257 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
259 <td class=
"md" nowrap
valign=
"top"> void dmxCommonKbdGetMap
</td>
260 <td class=
"md" valign=
"top">(
</td>
261 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
262 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
267 <td class=
"md" nowrap
>KeySymsPtr
</td>
268 <td class=
"mdname" nowrap
> <em>pKeySyms
</em>,
</td>
273 <td class=
"md" nowrap
>CARD8 *
</td>
274 <td class=
"mdname" nowrap
> <em>pModMap
</em></td>
278 <td class=
"md">)
</td>
279 <td class=
"md" colspan=
"2"></td>
286 <table cellspacing=
5 cellpadding=
0 border=
0>
294 Get the keyboard mapping.
</td>
297 <a class=
"anchor" name=
"a15" doxytag=
"dmxcommon.c::dmxCommonKbdOff" ></a><p>
298 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
301 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
303 <td class=
"md" nowrap
valign=
"top"> void dmxCommonKbdOff
</td>
304 <td class=
"md" valign=
"top">(
</td>
305 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
306 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
307 <td class=
"md" valign=
"top"> )
</td>
308 <td class=
"md" nowrap
></td>
315 <table cellspacing=
5 cellpadding=
0 border=
0>
323 Turn
<em>pDev
</em> off.
</td>
326 <a class=
"anchor" name=
"a14" doxytag=
"dmxcommon.c::dmxCommonKbdOn" ></a><p>
327 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
330 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
332 <td class=
"md" nowrap
valign=
"top"> int dmxCommonKbdOn
</td>
333 <td class=
"md" valign=
"top">(
</td>
334 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
335 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
336 <td class=
"md" valign=
"top"> )
</td>
337 <td class=
"md" nowrap
></td>
344 <table cellspacing=
5 cellpadding=
0 border=
0>
352 Turn
<em>pDev
</em> on (i.e., take input from
<em>pDev
</em>).
</td>
355 <a class=
"anchor" name=
"a10" doxytag=
"dmxcommon.c::dmxCommonMouCtrl" ></a><p>
356 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
359 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
361 <td class=
"md" nowrap
valign=
"top"> void dmxCommonMouCtrl
</td>
362 <td class=
"md" valign=
"top">(
</td>
363 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
364 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
369 <td class=
"md" nowrap
>PtrCtrl *
</td>
370 <td class=
"mdname" nowrap
> <em>ctrl
</em></td>
374 <td class=
"md">)
</td>
375 <td class=
"md" colspan=
"2"></td>
382 <table cellspacing=
5 cellpadding=
0 border=
0>
390 Update the mouse control.
</td>
393 <a class=
"anchor" name=
"a19" doxytag=
"dmxcommon.c::dmxCommonMouGetMap" ></a><p>
394 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
397 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
399 <td class=
"md" nowrap
valign=
"top"> void dmxCommonMouGetMap
</td>
400 <td class=
"md" valign=
"top">(
</td>
401 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
402 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
407 <td class=
"md" nowrap
>unsigned char *
</td>
408 <td class=
"mdname" nowrap
> <em>map
</em>,
</td>
413 <td class=
"md" nowrap
>int *
</td>
414 <td class=
"mdname" nowrap
> <em>nButtons
</em></td>
418 <td class=
"md">)
</td>
419 <td class=
"md" colspan=
"2"></td>
426 <table cellspacing=
5 cellpadding=
0 border=
0>
434 Obtain the mouse button mapping.
</td>
437 <a class=
"anchor" name=
"a24" doxytag=
"dmxcommon.c::dmxCommonMouOff" ></a><p>
438 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
441 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
443 <td class=
"md" nowrap
valign=
"top"> void dmxCommonMouOff
</td>
444 <td class=
"md" valign=
"top">(
</td>
445 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
446 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
447 <td class=
"md" valign=
"top"> )
</td>
448 <td class=
"md" nowrap
></td>
455 <table cellspacing=
5 cellpadding=
0 border=
0>
463 Turn
<em>pDev
</em> off.
</td>
466 <a class=
"anchor" name=
"a23" doxytag=
"dmxcommon.c::dmxCommonMouOn" ></a><p>
467 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
470 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
472 <td class=
"md" nowrap
valign=
"top"> int dmxCommonMouOn
</td>
473 <td class=
"md" valign=
"top">(
</td>
474 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
475 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
476 <td class=
"md" valign=
"top"> )
</td>
477 <td class=
"md" nowrap
></td>
484 <table cellspacing=
5 cellpadding=
0 border=
0>
492 Turn
<em>pDev
</em> on (i.e., take input from
<em>pDev
</em>).
</td>
495 <a class=
"anchor" name=
"a18" doxytag=
"dmxcommon.c::dmxCommonOthGetInfo" ></a><p>
496 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
499 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
501 <td class=
"md" nowrap
valign=
"top"> void dmxCommonOthGetInfo
</td>
502 <td class=
"md" valign=
"top">(
</td>
503 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
504 <td class=
"mdname" nowrap
> <em>pDev
</em>,
</td>
509 <td class=
"md" nowrap
><a class=
"el" href=
"struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr
</a> </td>
510 <td class=
"mdname" nowrap
> <em>info
</em></td>
514 <td class=
"md">)
</td>
515 <td class=
"md" colspan=
"2"></td>
522 <table cellspacing=
5 cellpadding=
0 border=
0>
530 Fill the
<em>info
</em> structure with information needed to initialize
<em>pDev
</em>.
</td>
533 <a class=
"anchor" name=
"a17" doxytag=
"dmxcommon.c::dmxCommonOthOff" ></a><p>
534 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
537 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
539 <td class=
"md" nowrap
valign=
"top"> void dmxCommonOthOff
</td>
540 <td class=
"md" valign=
"top">(
</td>
541 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
542 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
543 <td class=
"md" valign=
"top"> )
</td>
544 <td class=
"md" nowrap
></td>
551 <table cellspacing=
5 cellpadding=
0 border=
0>
559 Turn
<em>pDev
</em> off.
</td>
562 <a class=
"anchor" name=
"a16" doxytag=
"dmxcommon.c::dmxCommonOthOn" ></a><p>
563 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
566 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
568 <td class=
"md" nowrap
valign=
"top"> int dmxCommonOthOn
</td>
569 <td class=
"md" valign=
"top">(
</td>
570 <td class=
"md" nowrap
valign=
"top">DevicePtr
</td>
571 <td class=
"mdname1" valign=
"top" nowrap
> <em>pDev
</em> </td>
572 <td class=
"md" valign=
"top"> )
</td>
573 <td class=
"md" nowrap
></td>
580 <table cellspacing=
5 cellpadding=
0 border=
0>
588 Turn
<em>pDev
</em> on (i.e., take input from
<em>pDev
</em>).
</td>
591 <a class=
"anchor" name=
"a28" doxytag=
"dmxcommon.c::dmxCommonRestoreState" ></a><p>
592 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
595 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
597 <td class=
"md" nowrap
valign=
"top"> void dmxCommonRestoreState
</td>
598 <td class=
"md" valign=
"top">(
</td>
599 <td class=
"md" nowrap
valign=
"top">pointer
</td>
600 <td class=
"mdname1" valign=
"top" nowrap
> <em>private
</em> </td>
601 <td class=
"md" valign=
"top"> )
</td>
602 <td class=
"md" nowrap
></td>
609 <table cellspacing=
5 cellpadding=
0 border=
0>
617 This routine restores all the information saved by
<a class=
"el" href=
"dmxcommon_8h.html#a28">dmxCommonSaveState
</a>.
</td>
620 <a class=
"anchor" name=
"a27" doxytag=
"dmxcommon.c::dmxCommonSaveState" ></a><p>
621 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
624 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
626 <td class=
"md" nowrap
valign=
"top"> void dmxCommonSaveState
</td>
627 <td class=
"md" valign=
"top">(
</td>
628 <td class=
"md" nowrap
valign=
"top">pointer
</td>
629 <td class=
"mdname1" valign=
"top" nowrap
> <em>private
</em> </td>
630 <td class=
"md" valign=
"top"> )
</td>
631 <td class=
"md" nowrap
></td>
638 <table cellspacing=
5 cellpadding=
0 border=
0>
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>
652 <a class=
"anchor" name=
"a25" doxytag=
"dmxcommon.c::dmxFindPointerScreen" ></a><p>
653 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
656 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
658 <td class=
"md" nowrap
valign=
"top"> int dmxFindPointerScreen
</td>
659 <td class=
"md" valign=
"top">(
</td>
660 <td class=
"md" nowrap
valign=
"top">int
</td>
661 <td class=
"mdname" nowrap
> <em>x
</em>,
</td>
666 <td class=
"md" nowrap
>int
</td>
667 <td class=
"mdname" nowrap
> <em>y
</em></td>
671 <td class=
"md">)
</td>
672 <td class=
"md" colspan=
"2"></td>
679 <table cellspacing=
5 cellpadding=
0 border=
0>
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>
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>