diff options
author | marha <marha@users.sourceforge.net> | 2009-10-21 19:07:36 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-10-21 19:07:36 +0000 |
commit | 1f876171067c04fc21fccd5a3051f982fd85c0f0 (patch) | |
tree | 1f7883e3e5f5ef5cd401ee7c70dd5e679efd0615 /xorg-server/hw/dmx/doc/html/dmxcommon_8c.html | |
parent | 7687adcc34c9fc43d526f30b1cf2039b0af48841 (diff) | |
download | vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.tar.gz vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.tar.bz2 vcxsrv-1f876171067c04fc21fccd5a3051f982fd85c0f0.zip |
Updated to xorg-server-1.7.99.1
Diffstat (limited to 'xorg-server/hw/dmx/doc/html/dmxcommon_8c.html')
-rw-r--r-- | xorg-server/hw/dmx/doc/html/dmxcommon_8c.html | 1284 |
1 files changed, 736 insertions, 548 deletions
diff --git a/xorg-server/hw/dmx/doc/html/dmxcommon_8c.html b/xorg-server/hw/dmx/doc/html/dmxcommon_8c.html index 3e0459c12..6782e36ff 100644 --- a/xorg-server/hw/dmx/doc/html/dmxcommon_8c.html +++ b/xorg-server/hw/dmx/doc/html/dmxcommon_8c.html @@ -6,687 +6,875 @@ <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body> -<!-- Generated by Doxygen 1.3.4 --> -<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> -<h1>dmxcommon.c File Reference</h1><code>#include "<a class="el" href="dmxinputinit_8h-source.html">dmxinputinit.h</a>"</code><br> -<code>#include "<a class="el" href="dmxcommon_8h-source.html">dmxcommon.h</a>"</code><br> -<code>#include "<a class="el" href="dmxconsole_8h-source.html">dmxconsole.h</a>"</code><br> -<code>#include "<a class="el" href="dmxprop_8h-source.html">dmxprop.h</a>"</code><br> -<code>#include "<a class="el" href="dmxsync_8h-source.html">dmxsync.h</a>"</code><br> -<code>#include "<a class="el" href="dmxmap_8h-source.html">dmxmap.h</a>"</code><br> -<code>#include "inputstr.h"</code><br> -<code>#include "input.h"</code><br> -<code>#include "keysym.h"</code><br> -<code>#include "mipointer.h"</code><br> -<code>#include "scrnintstr.h"</code><br> -<code>#include <unistd.h></code><br> -<table border=0 cellpadding=0 cellspacing=0> -<tr><td></td></tr> -<tr><td colspan=2><br><h2>Data Structures</h2></td></tr> -<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> +<!-- Generated by Doxygen 1.6.1 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="main.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Data Structures</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>Globals</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>dmxcommon.c File Reference</h1><code>#include "<a class="el" href="dmxinputinit_8h_source.html">dmxinputinit.h</a>"</code><br/> +<code>#include "<a class="el" href="dmxcommon_8h_source.html">dmxcommon.h</a>"</code><br/> +<code>#include "<a class="el" href="dmxconsole_8h_source.html">dmxconsole.h</a>"</code><br/> +<code>#include "<a class="el" href="dmxprop_8h_source.html">dmxprop.h</a>"</code><br/> +<code>#include "<a class="el" href="dmxsync_8h_source.html">dmxsync.h</a>"</code><br/> +<code>#include "<a class="el" href="dmxmap_8h_source.html">dmxmap.h</a>"</code><br/> +<code>#include "inputstr.h"</code><br/> +<code>#include "input.h"</code><br/> +<code>#include <X11/keysym.h></code><br/> +<code>#include "mipointer.h"</code><br/> +<code>#include "scrnintstr.h"</code><br/> +<code>#include <unistd.h></code><br/> +<table border="0" cellpadding="0" cellspacing="0"> +<tr><td colspan="2"><h2>Data Structures</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__myPrivate.html">_myPrivate</a></td></tr> +<tr><td colspan="2"><h2>Defines</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#ac478cb19dda771f00d3b753001a51e09">DMX_STATE_DEBUG</a> 0</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#adf6865b0bc7ad370c94e3b8682262c13">DMXDBG0</a>(f)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a14111ac8f43949172b152e50dc720aba">NAME</a>(x) priv->xkb->names->x ? XGetAtomName(priv-><a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>,priv->xkb->names->x) : NULL</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#ad9bd99dabcb14e9efe85df040d63c4b3">ADD</a>(type)</td></tr> +<tr><td colspan="2"><h2>Typedefs</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__myPrivate.html">_myPrivate</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a25692217bddf2b6c089525b325afccf1">myPrivate</a></td></tr> +<tr><td colspan="2"><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a5fe4b4fef83f0ca1aba8cabf76ebccf2">dmxCommonKbdSetAR</a> (Display *<a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>, unsigned char *old, unsigned char *new)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a77cfda7cbd3e83a0869b26b782d2b6d4">dmxCommonKbdSetLeds</a> (Display *<a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>, unsigned long new)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a029097ed04b236c945e3715910250680">dmxCommonKbdSetCtrl</a> (Display *<a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>, KeybdCtrl *old, KeybdCtrl *new)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a71374978838ea5232f72055f152a894e">dmxCommonMouSetCtrl</a> (Display *<a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>, PtrCtrl *old, PtrCtrl *new)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a399f0ec4a6e5d0bcd3d07f24b2a6ac9e">dmxCommonKbdCtrl</a> (DevicePtr pDev, KeybdCtrl *ctrl)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a11aa027975061ee6f3e684ee66f0f18c">dmxCommonMouCtrl</a> (DevicePtr pDev, PtrCtrl *ctrl)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#aa069076ebf89f8b89668cffafb731cfe">dmxCommonKbdBell</a> (DevicePtr pDev, int percent, int volume, int pitch, int duration)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a83410e3987567bd35fd146b193a21ed9">dmxCommonKbdGetMap</a> (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a86b1c983a556770efdd1a19e8be44534">dmxCommonKbdGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a60cd36c3430ead2858986fe5f93165c1">dmxCommonKbdOn</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a9ddcdd8a91205b9b0e23022f246190a0">dmxCommonKbdOff</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a4b8e72433e206d48e6fb471e933800ad">dmxCommonOthOn</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a45f87ba7a0b02587dd2d1b4cdd3480c6">dmxCommonOthOff</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a67f944a345e0ba88ac996056914d191c">dmxCommonOthGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a9ce209ad340f84644115a165eadfa540">dmxCommonMouGetMap</a> (DevicePtr pDev, unsigned char *<a class="el" href="usb-keyboard_8c.html#a2187a19657fb0b38c67dbafc7dd74c4d">map</a>, int *nButtons)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void * </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a6e3adb2e48d7cc7a098c542c693d66d0">dmxCommonXSelect</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen, void *closure)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void * </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a82d9ce21ede8d533adde28ce8dbabdf7">dmxCommonAddEnabledDevice</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen, void *closure)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">static void * </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#adb5e0faaefc43851e4ebcd01bd9c10ec">dmxCommonRemoveEnabledDevice</a> (<a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> *dmxScreen, void *closure)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a8ba0ee4f9f09bc9089d480d1f5467cd8">dmxCommonMouOn</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#acfeaccbc1f2f5be028b3ee8c0f31da89">dmxCommonMouOff</a> (DevicePtr pDev)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a907580b7be71d9be0b771d32210f3cad">dmxFindPointerScreen</a> (int x, int y)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">pointer </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a0e7301a2783357ff391172acab00d48a">dmxCommonCopyPrivate</a> (DeviceIntPtr pDevice)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#a14295660e17d34955693cef6654d7bb6">dmxCommonSaveState</a> (pointer private)</td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxcommon_8c.html#aca953b7500d93577441828156674c64e">dmxCommonRestoreState</a> (pointer private)</td></tr> +</table> +<hr/><a name="_details"></a><h2>Detailed Description</h2> +<p>This file implements common routines used by the backend and console input devices. </p> +<hr/><h2>Define Documentation</h2> +<a class="anchor" id="ad9bd99dabcb14e9efe85df040d63c4b3"></a><!-- doxytag: member="dmxcommon.c::ADD" ref="ad9bd99dabcb14e9efe85df040d63c4b3" args="(type)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define ADD</td> + <td>(</td> + <td class="paramtype">type </td> + <td class="paramname"></td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">if</span> (count < <a class="code" href="dmxinputinit_8h.html#ae754d74afaf08d6e9b46b3bc7581623e">DMX_MAX_XINPUT_EVENT_TYPES</a>) { \ + type(priv->xi, event_type[count], event_list[count]); \ + <span class="keywordflow">if</span> (event_type[count]) { \ + <a class="code" href="dmxmap_8c.html#ada5a28e0c746708e0f5c45e9e193d907">dmxMapInsert</a>(dmxLocal, event_type[count], XI_##type); \ + ++count; \ + } \ + } <span class="keywordflow">else</span> { \ + <a class="code" href="dmxlog_8c.html#ab6259430a57c3cffdfc9f6259df0ad23">dmxLog</a>(<a class="code" href="dmxlog_8h.html#aeed612a5c0be196e23bd6b71b76b917fae81ae2a11fb7ab8eea902f609574210a">dmxWarning</a>, <span class="stringliteral">"More than %d event types for %s\n"</span>, \ + <a class="code" href="dmxinputinit_8h.html#ae754d74afaf08d6e9b46b3bc7581623e">DMX_MAX_XINPUT_EVENT_TYPES</a>, dmxInput->name); \ + } +</pre></div> +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00310">dmxCommonOthOn()</a>.</p> + +</div> +</div> +<a class="anchor" id="ac478cb19dda771f00d3b753001a51e09"></a><!-- doxytag: member="dmxcommon.c::DMX_STATE_DEBUG" ref="ac478cb19dda771f00d3b753001a51e09" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define DMX_STATE_DEBUG 0</td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td colspan=2><br><h2>Typedefs</h2></td></tr> -<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> +</div> +</div> +<a class="anchor" id="adf6865b0bc7ad370c94e3b8682262c13"></a><!-- doxytag: member="dmxcommon.c::DMXDBG0" ref="adf6865b0bc7ad370c94e3b8682262c13" args="(f)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define DMXDBG0</td> + <td>(</td> + <td class="paramtype">f </td> + <td class="paramname"></td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +</div> +</div> +<a class="anchor" id="a14111ac8f43949172b152e50dc720aba"></a><!-- doxytag: member="dmxcommon.c::NAME" ref="a14111ac8f43949172b152e50dc720aba" args="(x)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">#define NAME</td> + <td>(</td> + <td class="paramtype">x </td> + <td class="paramname"></td> + <td> ) </td> + <td> priv->xkb->names->x ? XGetAtomName(priv-><a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>,priv->xkb->names->x) : NULL</td> + </tr> + </table> +</div> +<div class="memdoc"> -<tr><td colspan=2><br><h2>Functions</h2></td></tr> -<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> +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00259">dmxCommonKbdGetInfo()</a>.</p> -<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> +</div> +</div> +<hr/><h2>Typedef Documentation</h2> +<a class="anchor" id="a25692217bddf2b6c089525b325afccf1"></a><!-- doxytag: member="dmxcommon.c::myPrivate" ref="a25692217bddf2b6c089525b325afccf1" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">typedef struct <a class="el" href="struct__myPrivate.html">_myPrivate</a> <a class="el" href="struct__myPrivate.html">myPrivate</a></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Each device has a private area that is visible only from inside the driver code. </p> -<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> +</div> +</div> +<hr/><h2>Function Documentation</h2> +<a class="anchor" id="a82d9ce21ede8d533adde28ce8dbabdf7"></a><!-- doxytag: member="dmxcommon.c::dmxCommonAddEnabledDevice" ref="a82d9ce21ede8d533adde28ce8dbabdf7" args="(DMXScreenInfo *dmxScreen, void *closure)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">static void* dmxCommonAddEnabledDevice </td> + <td>(</td> + <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> + <td class="paramname"> <em>dmxScreen</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">void * </td> + <td class="paramname"> <em>closure</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> -<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> +<p>References <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>.</p> -<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> +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00479">dmxCommonMouOn()</a>.</p> -<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> +</div> +</div> +<a class="anchor" id="a0e7301a2783357ff391172acab00d48a"></a><!-- doxytag: member="dmxcommon.c::dmxCommonCopyPrivate" ref="a0e7301a2783357ff391172acab00d48a" args="(DeviceIntPtr pDevice)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">pointer dmxCommonCopyPrivate </td> + <td>(</td> + <td class="paramtype">DeviceIntPtr </td> + <td class="paramname"> <em>pDevice</em></td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>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. </p> -<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> +<p>References <a class="el" href="dmxinput_8h_source.html#l00125">_DMXInputInfo::devs</a>, <a class="el" href="dmxinit_8c_source.html#l00087">dmxInputs</a>, <a class="el" href="dmxcommon_8h_source.html#l00073">GETDMXLOCALFROMPDEVICE</a>, <a class="el" href="dmxinput_8h_source.html#l00119">_DMXInputInfo::numDevs</a>, and <a class="el" href="dmxinputinit_8h_source.html#l00229">_DMXLocalInputInfo::private</a>.</p> -<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> +</div> +</div> +<a class="anchor" id="aa069076ebf89f8b89668cffafb731cfe"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdBell" ref="aa069076ebf89f8b89668cffafb731cfe" args="(DevicePtr pDev, int percent, int volume, int pitch, int duration)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void dmxCommonKbdBell </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>percent</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>volume</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>pitch</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>duration</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Sound they keyboard bell. </p> -<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> +<p>References <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> -<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> +</div> +</div> +<a class="anchor" id="a399f0ec4a6e5d0bcd3d07f24b2a6ac9e"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdCtrl" ref="a399f0ec4a6e5d0bcd3d07f24b2a6ac9e" args="(DevicePtr pDev, KeybdCtrl *ctrl)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void dmxCommonKbdCtrl </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">KeybdCtrl * </td> + <td class="paramname"> <em>ctrl</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Update the keyboard control. </p> -<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> +<p>References <a class="el" href="dmxcommon_8c_source.html#l00117">dmxCommonKbdSetCtrl()</a>, <a class="el" href="dmxcommon_8c_source.html#l00567">dmxCommonSaveState()</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> -<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> +</div> +</div> +<a class="anchor" id="a86b1c983a556770efdd1a19e8be44534"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdGetInfo" ref="a86b1c983a556770efdd1a19e8be44534" args="(DevicePtr pDev, DMXLocalInitInfoPtr info)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void dmxCommonKbdGetInfo </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> </td> + <td class="paramname"> <em>info</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Fill in the XKEYBOARD parts of the <em>info</em> structure for the specified <em>pDev</em>. </p> -<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> +<p>References <a class="el" href="dmxcommon_8c_source.html#l00621">dmxCommonRestoreState()</a>, <a class="el" href="dmxcommon_8c_source.html#l00567">dmxCommonSaveState()</a>, <a class="el" href="dmxlog_8c_source.html#l00219">dmxLogInput()</a>, <a class="el" href="dmxinputinit_8h_source.html#l00092">_DMXLocalInitInfo::freenames</a>, <a class="el" href="dmxcommon_8h_source.html#l00077">GETDMXINPUTFROMPRIV</a>, <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>, <a class="el" href="dmxcommon_8c.html#a14111ac8f43949172b152e50dc720aba">NAME</a>, and <a class="el" href="dmxinputinit_8h_source.html#l00091">_DMXLocalInitInfo::names</a>.</p> -<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> +<p>Referenced by <a class="el" href="dmxbackend_8c_source.html#l00595">dmxBackendKbdGetInfo()</a>, and <a class="el" href="dmxconsole_8c_source.html#l00883">dmxConsoleKbdGetInfo()</a>.</p> -<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> +</div> +</div> +<a class="anchor" id="a83410e3987567bd35fd146b193a21ed9"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdGetMap" ref="a83410e3987567bd35fd146b193a21ed9" args="(DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void dmxCommonKbdGetMap </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">KeySymsPtr </td> + <td class="paramname"> <em>pKeySyms</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">CARD8 * </td> + <td class="paramname"> <em>pModMap</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> +<p>Get the keyboard mapping. </p> -<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> +<p>References <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> -<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> +<p>Referenced by <a class="el" href="dmxbackend_8c_source.html#l00595">dmxBackendKbdGetInfo()</a>, and <a class="el" href="dmxconsole_8c_source.html#l00883">dmxConsoleKbdGetInfo()</a>.</p> -</table> -<hr><a name="_details"></a><h2>Detailed Description</h2> -This file implements common routines used by the backend and console input devices.<hr><h2>Typedef Documentation</h2> -<a class="anchor" name="a4" doxytag="dmxcommon.c::myPrivate" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <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> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Each device has a private area that is visible only from inside the driver code. </td> - </tr> -</table> -<hr><h2>Function Documentation</h2> -<a class="anchor" name="a26" doxytag="dmxcommon.c::dmxCommonCopyPrivate" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +</div> +<a class="anchor" id="a9ddcdd8a91205b9b0e23022f246190a0"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdOff" ref="a9ddcdd8a91205b9b0e23022f246190a0" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> pointer dmxCommonCopyPrivate </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DeviceIntPtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDevice</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">void dmxCommonKbdOff </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> + <td></td> </tr> + </table> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> off. </p> + +<p>References <a class="el" href="dmxcommon_8h_source.html#l00095">DMX_KEYBOARD_EVENT_MASK</a>, <a class="el" href="dmxcommon_8c_source.html#l00621">dmxCommonRestoreState()</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> +</div> +</div> +<a class="anchor" id="a60cd36c3430ead2858986fe5f93165c1"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdOn" ref="a60cd36c3430ead2858986fe5f93165c1" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int dmxCommonKbdOn </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> + <td></td> + </tr> </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -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> - </tr> -</table> -<a class="anchor" name="a11" doxytag="dmxcommon.c::dmxCommonKbdBell" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </p> + +<p>References <a class="el" href="dmxcommon_8h_source.html#l00095">DMX_KEYBOARD_EVENT_MASK</a>, <a class="el" href="dmxcommon_8c_source.html#l00567">dmxCommonSaveState()</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +</div> +</div> +<a class="anchor" id="a5fe4b4fef83f0ca1aba8cabf76ebccf2"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdSetAR" ref="a5fe4b4fef83f0ca1aba8cabf76ebccf2" args="(Display *display, unsigned char *old, unsigned char *new)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonKbdBell </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">static void dmxCommonKbdSetAR </td> + <td>(</td> + <td class="paramtype">Display * </td> + <td class="paramname"> <em>display</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>percent</em>, </td> + <td class="paramtype">unsigned char * </td> + <td class="paramname"> <em>old</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>volume</em>, </td> + <td class="paramtype">unsigned char * </td> + <td class="paramname"> <em>new</em></td><td> </td> </tr> <tr> <td></td> - <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>pitch</em>, </td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00117">dmxCommonKbdSetCtrl()</a>.</p> + +</div> +</div> +<a class="anchor" id="a029097ed04b236c945e3715910250680"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdSetCtrl" ref="a029097ed04b236c945e3715910250680" args="(Display *display, KeybdCtrl *old, KeybdCtrl *new)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">static void dmxCommonKbdSetCtrl </td> + <td>(</td> + <td class="paramtype">Display * </td> + <td class="paramname"> <em>display</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> + <td class="paramtype">KeybdCtrl * </td> + <td class="paramname"> <em>old</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>duration</em></td> + <td class="paramtype">KeybdCtrl * </td> + <td class="paramname"> <em>new</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Sound they keyboard bell. </td> - </tr> -</table> -<a class="anchor" name="a9" doxytag="dmxcommon.c::dmxCommonKbdCtrl" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +<p>References <a class="el" href="dmxcommon_8c_source.html#l00074">dmxCommonKbdSetAR()</a>, and <a class="el" href="dmxcommon_8c_source.html#l00105">dmxCommonKbdSetLeds()</a>.</p> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00156">dmxCommonKbdCtrl()</a>, <a class="el" href="dmxcommon_8c_source.html#l00621">dmxCommonRestoreState()</a>, and <a class="el" href="dmxcommon_8c_source.html#l00567">dmxCommonSaveState()</a>.</p> + +</div> +</div> +<a class="anchor" id="a77cfda7cbd3e83a0869b26b782d2b6d4"></a><!-- doxytag: member="dmxcommon.c::dmxCommonKbdSetLeds" ref="a77cfda7cbd3e83a0869b26b782d2b6d4" args="(Display *display, unsigned long new)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonKbdCtrl </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">static void dmxCommonKbdSetLeds </td> + <td>(</td> + <td class="paramtype">Display * </td> + <td class="paramname"> <em>display</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>KeybdCtrl * </td> - <td class="mdname" nowrap> <em>ctrl</em></td> + <td class="paramtype">unsigned long </td> + <td class="paramname"> <em>new</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Update the keyboard control. </td> - </tr> -</table> -<a class="anchor" name="a13" doxytag="dmxcommon.c::dmxCommonKbdGetInfo" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00117">dmxCommonKbdSetCtrl()</a>.</p> + +</div> +</div> +<a class="anchor" id="a11aa027975061ee6f3e684ee66f0f18c"></a><!-- doxytag: member="dmxcommon.c::dmxCommonMouCtrl" ref="a11aa027975061ee6f3e684ee66f0f18c" args="(DevicePtr pDev, PtrCtrl *ctrl)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonKbdGetInfo </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">void dmxCommonMouCtrl </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> </td> - <td class="mdname" nowrap> <em>info</em></td> + <td class="paramtype">PtrCtrl * </td> + <td class="paramname"> <em>ctrl</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Fill in the XKEYBOARD parts of the <em>info</em> structure for the specified <em>pDev</em>. </td> - </tr> -</table> -<a class="anchor" name="a12" doxytag="dmxcommon.c::dmxCommonKbdGetMap" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Update the mouse control. </p> + +<p>References <a class="el" href="dmxcommon_8c_source.html#l00138">dmxCommonMouSetCtrl()</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +</div> +</div> +<a class="anchor" id="a9ce209ad340f84644115a165eadfa540"></a><!-- doxytag: member="dmxcommon.c::dmxCommonMouGetMap" ref="a9ce209ad340f84644115a165eadfa540" args="(DevicePtr pDev, unsigned char *map, int *nButtons)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonKbdGetMap </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">void dmxCommonMouGetMap </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>KeySymsPtr </td> - <td class="mdname" nowrap> <em>pKeySyms</em>, </td> + <td class="paramtype">unsigned char * </td> + <td class="paramname"> <em>map</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>CARD8 * </td> - <td class="mdname" nowrap> <em>pModMap</em></td> + <td class="paramtype">int * </td> + <td class="paramname"> <em>nButtons</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Get the keyboard mapping. </td> - </tr> -</table> -<a class="anchor" name="a15" doxytag="dmxcommon.c::dmxCommonKbdOff" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Obtain the mouse button mapping. </p> + +<p>References <a class="el" href="dmxinputinit_8h_source.html#l00047">DMX_MAX_BUTTONS</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +<p>Referenced by <a class="el" href="dmxbackend_8c_source.html#l00576">dmxBackendMouGetInfo()</a>, and <a class="el" href="dmxconsole_8c_source.html#l00862">dmxConsoleMouGetInfo()</a>.</p> + +</div> +</div> +<a class="anchor" id="acfeaccbc1f2f5be028b3ee8c0f31da89"></a><!-- doxytag: member="dmxcommon.c::dmxCommonMouOff" ref="acfeaccbc1f2f5be028b3ee8c0f31da89" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonKbdOff </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">void dmxCommonMouOff </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> + <td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> off. </td> - </tr> -</table> -<a class="anchor" name="a14" doxytag="dmxcommon.c::dmxCommonKbdOn" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> off. </p> + +<p>References <a class="el" href="dmxcommon_8h_source.html#l00098">DMX_POINTER_EVENT_MASK</a>, <a class="el" href="dmxcommon_8c_source.html#l00471">dmxCommonRemoveEnabledDevice()</a>, <a class="el" href="dmxcommon_8c_source.html#l00458">dmxCommonXSelect()</a>, <a class="el" href="dmxprop_8c_source.html#l00098">dmxPropertyIterate()</a>, <a class="el" href="dmxcommon_8h_source.html#l00077">GETDMXINPUTFROMPRIV</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +</div> +</div> +<a class="anchor" id="a8ba0ee4f9f09bc9089d480d1f5467cd8"></a><!-- doxytag: member="dmxcommon.c::dmxCommonMouOn" ref="a8ba0ee4f9f09bc9089d480d1f5467cd8" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> int dmxCommonKbdOn </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">int dmxCommonMouOn </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> + <td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td> - </tr> -</table> -<a class="anchor" name="a10" doxytag="dmxcommon.c::dmxCommonMouCtrl" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </p> + +<p>References <a class="el" href="dmxcommon_8h_source.html#l00098">DMX_POINTER_EVENT_MASK</a>, <a class="el" href="dmxcommon_8c_source.html#l00465">dmxCommonAddEnabledDevice()</a>, <a class="el" href="dmxcommon_8c_source.html#l00458">dmxCommonXSelect()</a>, <a class="el" href="dmxprop_8c_source.html#l00098">dmxPropertyIterate()</a>, <a class="el" href="dmxinit_8c_source.html#l00084">dmxScreens</a>, <a class="el" href="dmxinit_8c_source.html#l00089">dmxShadowFB</a>, <a class="el" href="dmxsync_8c_source.html#l00150">dmxSync()</a>, <a class="el" href="dmxcommon_8h_source.html#l00077">GETDMXINPUTFROMPRIV</a>, and <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +</div> +</div> +<a class="anchor" id="a71374978838ea5232f72055f152a894e"></a><!-- doxytag: member="dmxcommon.c::dmxCommonMouSetCtrl" ref="a71374978838ea5232f72055f152a894e" args="(Display *display, PtrCtrl *old, PtrCtrl *new)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonMouCtrl </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">static void dmxCommonMouSetCtrl </td> + <td>(</td> + <td class="paramtype">Display * </td> + <td class="paramname"> <em>display</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> + <td class="paramtype">PtrCtrl * </td> + <td class="paramname"> <em>old</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> <td></td> - <td class="md" nowrap>PtrCtrl * </td> - <td class="mdname" nowrap> <em>ctrl</em></td> + <td class="paramtype">PtrCtrl * </td> + <td class="paramname"> <em>new</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Update the mouse control. </td> - </tr> -</table> -<a class="anchor" name="a19" doxytag="dmxcommon.c::dmxCommonMouGetMap" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00170">dmxCommonMouCtrl()</a>.</p> + +</div> +</div> +<a class="anchor" id="a67f944a345e0ba88ac996056914d191c"></a><!-- doxytag: member="dmxcommon.c::dmxCommonOthGetInfo" ref="a67f944a345e0ba88ac996056914d191c" args="(DevicePtr pDev, DMXLocalInitInfoPtr info)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonMouGetMap </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">void dmxCommonOthGetInfo </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>unsigned char * </td> - <td class="mdname" nowrap> <em>map</em>, </td> + <td class="paramtype"><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> </td> + <td class="paramname"> <em>info</em></td><td> </td> </tr> <tr> <td></td> - <td></td> - <td class="md" nowrap>int * </td> - <td class="mdname" nowrap> <em>nButtons</em></td> + <td>)</td> + <td></td><td></td><td></td> </tr> + </table> +</div> +<div class="memdoc"> +<p>Fill the <em>info</em> structure with information needed to initialize <em>pDev</em>. </p> + +<p>References <a class="el" href="dmxinputinit_8h_source.html#l00095">_DMXLocalInitInfo::buttonClass</a>, <a class="el" href="dmxprop_8c.html#ac49dfab9200d48f835ce64819c4fc878">display</a>, <a class="el" href="dmxinputinit_8c_source.html#l00830">dmxInputExtensionErrorHandler()</a>, <a class="el" href="dmxinputinit_8h_source.html#l00109">_DMXLocalInitInfo::focusClass</a>, <a class="el" href="dmxcommon_8h_source.html#l00077">GETDMXINPUTFROMPRIV</a>, <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>, <a class="el" href="dmxinputinit_8h_source.html#l00113">_DMXLocalInitInfo::kbdFeedbackClass</a>, <a class="el" href="dmxinputinit_8h_source.html#l00084">_DMXLocalInitInfo::keyboard</a>, <a class="el" href="dmxinputinit_8h_source.html#l00086">_DMXLocalInitInfo::keyClass</a>, <a class="el" href="dmxinputinit_8h_source.html#l00087">_DMXLocalInitInfo::keySyms</a>, <a class="el" href="dmxinputinit_8h_source.html#l00107">_DMXLocalInitInfo::maxres</a>, <a class="el" href="dmxinputinit_8h_source.html#l00104">_DMXLocalInitInfo::maxval</a>, <a class="el" href="dmxinputinit_8h_source.html#l00106">_DMXLocalInitInfo::minres</a>, <a class="el" href="dmxinputinit_8h_source.html#l00103">_DMXLocalInitInfo::minval</a>, <a class="el" href="dmxinputinit_8h_source.html#l00102">_DMXLocalInitInfo::numAbsAxes</a>, <a class="el" href="dmxinputinit_8h_source.html#l00096">_DMXLocalInitInfo::numButtons</a>, <a class="el" href="dmxinputinit_8h_source.html#l00101">_DMXLocalInitInfo::numRelAxes</a>, <a class="el" href="dmxinputinit_8h_source.html#l00111">_DMXLocalInitInfo::proximityClass</a>, <a class="el" href="dmxinputinit_8h_source.html#l00115">_DMXLocalInitInfo::ptrFeedbackClass</a>, <a class="el" href="dmxinputinit_8h_source.html#l00105">_DMXLocalInitInfo::res</a>, and <a class="el" href="dmxinputinit_8h_source.html#l00099">_DMXLocalInitInfo::valuatorClass</a>.</p> + +</div> +</div> +<a class="anchor" id="a45f87ba7a0b02587dd2d1b4cdd3480c6"></a><!-- doxytag: member="dmxcommon.c::dmxCommonOthOff" ref="a45f87ba7a0b02587dd2d1b4cdd3480c6" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> + <td class="memname">void dmxCommonOthOff </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Obtain the mouse button mapping. </td> - </tr> -</table> -<a class="anchor" name="a24" doxytag="dmxcommon.c::dmxCommonMouOff" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top"> void dmxCommonMouOff </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> - </tr> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> off. </p> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> off. </td> - </tr> -</table> -<a class="anchor" name="a23" doxytag="dmxcommon.c::dmxCommonMouOn" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +<p>References <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>.</p> + +</div> +</div> +<a class="anchor" id="a4b8e72433e206d48e6fb471e933800ad"></a><!-- doxytag: member="dmxcommon.c::dmxCommonOthOn" ref="a4b8e72433e206d48e6fb471e933800ad" args="(DevicePtr pDev)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> int dmxCommonMouOn </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">int dmxCommonOthOn </td> + <td>(</td> + <td class="paramtype">DevicePtr </td> + <td class="paramname"> <em>pDev</em></td> + <td> ) </td> + <td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td> - </tr> -</table> -<a class="anchor" name="a18" doxytag="dmxcommon.c::dmxCommonOthGetInfo" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </p> + +<p>References <a class="el" href="dmxcommon_8c.html#ad9bd99dabcb14e9efe85df040d63c4b3">ADD</a>, <a class="el" href="dmxclient_8h.html#a9cdf1d1f5958572f162e6c5d5c19d4a4">ChangeDeviceNotify</a>, <a class="el" href="dmxclient_8h.html#a83d9bb79d3ddadf36469794bf2563482">DeviceFocusIn</a>, <a class="el" href="dmxclient_8h.html#a5da5340a54a4f158c507ee002c4b3824">DeviceFocusOut</a>, <a class="el" href="dmxclient_8h.html#a232c73ad30bfc3116842076bd6fc1151">DeviceMappingNotify</a>, <a class="el" href="dmxclient_8h.html#a989f862a42e735c00e8c23a239920772">DeviceMotionNotify</a>, <a class="el" href="dmxclient_8h.html#a7212800e5b127f95425fb860bb2dcbdf">DeviceStateNotify</a>, <a class="el" href="dmxinputinit_8h_source.html#l00051">DMX_MAX_XINPUT_EVENT_TYPES</a>, <a class="el" href="dmxlog_8c_source.html#l00159">dmxLog()</a>, <a class="el" href="dmxlog_8h_source.html#l00045">dmxWarning</a>, <a class="el" href="dmxcommon_8h_source.html#l00077">GETDMXINPUTFROMPRIV</a>, <a class="el" href="dmxcommon_8h_source.html#l00091">GETPRIVFROMPDEV</a>, <a class="el" href="dmxclient_8h.html#ac1fa54a853b3edb8cbf6378dfaa962a6">ProximityIn</a>, and <a class="el" href="dmxclient_8h.html#a606f455d31c949b7f57a51a0e0b5f351">ProximityOut</a>.</p> + +</div> +</div> +<a class="anchor" id="adb5e0faaefc43851e4ebcd01bd9c10ec"></a><!-- doxytag: member="dmxcommon.c::dmxCommonRemoveEnabledDevice" ref="adb5e0faaefc43851e4ebcd01bd9c10ec" args="(DMXScreenInfo *dmxScreen, void *closure)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonOthGetInfo </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname" nowrap> <em>pDev</em>, </td> + <td class="memname">static void* dmxCommonRemoveEnabledDevice </td> + <td>(</td> + <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> + <td class="paramname"> <em>dmxScreen</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> </td> - <td class="mdname" nowrap> <em>info</em></td> + <td class="paramtype">void * </td> + <td class="paramname"> <em>closure</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Fill the <em>info</em> structure with information needed to initialize <em>pDev</em>. </td> - </tr> -</table> -<a class="anchor" name="a17" doxytag="dmxcommon.c::dmxCommonOthOff" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +<p>References <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>.</p> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00504">dmxCommonMouOff()</a>.</p> + +</div> +</div> +<a class="anchor" id="aca953b7500d93577441828156674c64e"></a><!-- doxytag: member="dmxcommon.c::dmxCommonRestoreState" ref="aca953b7500d93577441828156674c64e" args="(pointer private)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonOthOff </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">void dmxCommonRestoreState </td> + <td>(</td> + <td class="paramtype">pointer </td> + <td class="paramname"> <em>private</em></td> + <td> ) </td> + <td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> off. </td> - </tr> -</table> -<a class="anchor" name="a16" doxytag="dmxcommon.c::dmxCommonOthOn" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>This routine restores all the information saved by <a class="el" href="dmxcommon_8h.html#a14295660e17d34955693cef6654d7bb6">dmxCommonSaveState</a>. </p> + +<p>References <a class="el" href="dmxcommon_8c_source.html#l00117">dmxCommonKbdSetCtrl()</a>, <a class="el" href="dmxcursor_8c_source.html#l00105">DMXDBG0</a>, <a class="el" href="dmxlog_8c_source.html#l00159">dmxLog()</a>, <a class="el" href="dmxlog_8c_source.html#l00219">dmxLogInput()</a>, <a class="el" href="dmxlog_8h_source.html#l00045">dmxWarning</a>, and <a class="el" href="dmxcommon_8h_source.html#l00069">GETPRIVFROMPRIVATE</a>.</p> + +<p>Referenced by <a class="el" href="dmxbackend_8c_source.html#l00335">dmxBackendCollectEvents()</a>, <a class="el" href="dmxconsole_8c_source.html#l00596">dmxCloseConsole()</a>, <a class="el" href="dmxcommon_8c_source.html#l00259">dmxCommonKbdGetInfo()</a>, <a class="el" href="dmxcommon_8c_source.html#l00301">dmxCommonKbdOff()</a>, and <a class="el" href="dmxconsole_8c_source.html#l00458">dmxConsoleCollectEvents()</a>.</p> + +</div> +</div> +<a class="anchor" id="a14295660e17d34955693cef6654d7bb6"></a><!-- doxytag: member="dmxcommon.c::dmxCommonSaveState" ref="a14295660e17d34955693cef6654d7bb6" args="(pointer private)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> int dmxCommonOthOn </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">DevicePtr </td> - <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">void dmxCommonSaveState </td> + <td>(</td> + <td class="paramtype">pointer </td> + <td class="paramname"> <em>private</em></td> + <td> ) </td> + <td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td> - </tr> -</table> -<a class="anchor" name="a28" doxytag="dmxcommon.c::dmxCommonRestoreState" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> +<p>This routine saves and resets some important state for the backend and console device drivers:</p> +<ul> +<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> +<p>This routine and <a class="el" href="dmxcommon_8h.html#aca953b7500d93577441828156674c64e">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). </p> + +<p>References <a class="el" href="dmxcommon_8c_source.html#l00117">dmxCommonKbdSetCtrl()</a>, <a class="el" href="dmxcursor_8c_source.html#l00105">DMXDBG0</a>, <a class="el" href="dmxlog_8c_source.html#l00219">dmxLogInput()</a>, <a class="el" href="dmxinit_8c_source.html#l00084">dmxScreens</a>, <a class="el" href="dmxsync_8c_source.html#l00150">dmxSync()</a>, <a class="el" href="dmxinit_8c_source.html#l00102">dmxUseXKB</a>, and <a class="el" href="dmxcommon_8h_source.html#l00069">GETPRIVFROMPRIVATE</a>.</p> + +<p>Referenced by <a class="el" href="dmxbackend_8c_source.html#l00335">dmxBackendCollectEvents()</a>, <a class="el" href="dmxcommon_8c_source.html#l00156">dmxCommonKbdCtrl()</a>, <a class="el" href="dmxcommon_8c_source.html#l00259">dmxCommonKbdGetInfo()</a>, <a class="el" href="dmxcommon_8c_source.html#l00288">dmxCommonKbdOn()</a>, and <a class="el" href="dmxconsole_8c_source.html#l00458">dmxConsoleCollectEvents()</a>.</p> + +</div> +</div> +<a class="anchor" id="a6e3adb2e48d7cc7a098c542c693d66d0"></a><!-- doxytag: member="dmxcommon.c::dmxCommonXSelect" ref="a6e3adb2e48d7cc7a098c542c693d66d0" args="(DMXScreenInfo *dmxScreen, void *closure)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonRestoreState </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">pointer </td> - <td class="mdname1" valign="top" nowrap> <em>private</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="memname">static void* dmxCommonXSelect </td> + <td>(</td> + <td class="paramtype"><a class="el" href="struct__DMXScreenInfo.html">DMXScreenInfo</a> * </td> + <td class="paramname"> <em>dmxScreen</em>, </td> </tr> - - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -This routine restores all the information saved by <a class="el" href="dmxcommon_8h.html#a28">dmxCommonSaveState</a>. </td> - </tr> -</table> -<a class="anchor" name="a27" doxytag="dmxcommon.c::dmxCommonSaveState" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> void dmxCommonSaveState </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">pointer </td> - <td class="mdname1" valign="top" nowrap> <em>private</em> </td> - <td class="md" valign="top"> ) </td> - <td class="md" nowrap></td> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">void * </td> + <td class="paramname"> <em>closure</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [static]</code></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -This routine saves and resets some important state for the backend and console device drivers:<ul> -<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> -<p> -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> - </tr> -</table> -<a class="anchor" name="a25" doxytag="dmxcommon.c::dmxFindPointerScreen" ></a><p> -<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> +</div> +<div class="memdoc"> + +<p>References <a class="el" href="dmx_8h_source.html#l00099">_DMXScreenInfo::beDisplay</a>, and <a class="el" href="dmx_8h_source.html#l00125">_DMXScreenInfo::scrnWin</a>.</p> + +<p>Referenced by <a class="el" href="dmxcommon_8c_source.html#l00504">dmxCommonMouOff()</a>, and <a class="el" href="dmxcommon_8c_source.html#l00479">dmxCommonMouOn()</a>.</p> + +</div> +</div> +<a class="anchor" id="a907580b7be71d9be0b771d32210f3cad"></a><!-- doxytag: member="dmxcommon.c::dmxFindPointerScreen" ref="a907580b7be71d9be0b771d32210f3cad" args="(int x, int y)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> <tr> - <td class="md" nowrap valign="top"> int dmxFindPointerScreen </td> - <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">int </td> - <td class="mdname" nowrap> <em>x</em>, </td> + <td class="memname">int dmxFindPointerScreen </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname"> <em>x</em>, </td> </tr> <tr> + <td class="paramkey"></td> <td></td> - <td></td> - <td class="md" nowrap>int </td> - <td class="mdname" nowrap> <em>y</em></td> + <td class="paramtype">int </td> + <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> - <td class="md">) </td> - <td class="md" colspan="2"></td> + <td>)</td> + <td></td><td></td><td></td> </tr> - </table> - </td> - </tr> -</table> -<table cellspacing=5 cellpadding=0 border=0> - <tr> - <td> - - </td> - <td> - -<p> -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> - </tr> -</table> +</div> +<div class="memdoc"> +<p>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 <em>dmxScreenInfo</em> and is between -1 and <em>dmxNumScreens</em> - 1, inclusive. </p> + +<p>References <a class="el" href="dmxinit_8c_source.html#l00083">dmxNumScreens</a>.</p> + +</div> +</div> +</div> <hr> <address> <small> |