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.7.4 --> 10 <div id="navrow1" class="tabs"> 11 <ul class="tablist"> 12 <li><a href="index.html"><span>Main Page</span></a></li> 13 <li><a href="annotated.html"><span>Data Structures</span></a></li> 14 <li class="current"><a href="files.html"><span>Files</span></a></li> 15 </ul> 16 </div> 17 <div id="navrow2" class="tabs2"> 18 <ul class="tablist"> 19 <li><a href="files.html"><span>File List</span></a></li> 20 <li><a href="globals.html"><span>Globals</span></a></li> 21 </ul> 22 </div> 23</div> 24<div id="side-nav" class="ui-resizable side-nav-resizable"> 25 <div id="nav-tree"> 26 <div id="nav-tree-contents"> 27 </div> 28 </div> 29 <div id="splitbar" style="-moz-user-select:none;" 30 class="ui-resizable-handle"> 31 </div> 32</div> 33<script type="text/javascript"> 34 initNavTree('usb-mouse_8c.html',''); 35</script> 36<div id="doc-content"> 37<div class="header"> 38 <div class="summary"> 39<a href="#define-members">Defines</a> | 40<a href="#func-members">Functions</a> </div> 41 <div class="headertitle"> 42<div class="title">usb-mouse.c File Reference</div> </div> 43</div> 44<div class="contents"> 45<div class="textblock"><code>#include "<a class="el" href="usb-private_8h_source.html">usb-private.h</a>"</code><br/> 46<code>#include "<a class="el" href="usb-mouse_8h_source.html">usb-mouse.h</a>"</code><br/> 47</div><table class="memberdecls"> 48<tr><td colspan="2"><h2><a name="define-members"></a> 49Defines</h2></td></tr> 50<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#aacf069d346230dd96812d5395728eef2">GETPRIV</a></td></tr> 51<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a837722a322e811d5e42242655f277b87">LOG0</a>(f)   dmxLog(dmxDebug,f)</td></tr> 52<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#aab4b3434c36117a2ecdddec40716d97a">LOG1</a>(f, a)   dmxLog(dmxDebug,f,a)</td></tr> 53<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a16da5d597d9bfb9e569a9bfb6996382c">LOG2</a>(f, a, b)   dmxLog(dmxDebug,f,a,b)</td></tr> 54<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a8247f0bca25789d2ac27674eb26e223f">LOG3</a>(f, a, b, c)   dmxLog(dmxDebug,f,a,b,c)</td></tr> 55<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a6bce6020b913db8afe5d94bc63d1b355">FATAL0</a>(f)   dmxLog(dmxFatal,f)</td></tr> 56<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a11bcea7c6bc7dbe400a3855f5b8676ce">FATAL1</a>(f, a)   dmxLog(dmxFatal,f,a)</td></tr> 57<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a7952c9e9fe9c75be4964fc53a4299183">FATAL2</a>(f, a, b)   dmxLog(dmxFatal,f,a,b)</td></tr> 58<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a11a17082bee3b1b8217ce8a12adcf814">MOTIONPROC</a>   <a class="el" href="dmxinputinit_8h.html#a1279820425966adabf5c77357e4a289c">dmxMotionProcPtr</a></td></tr> 59<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a017080ce5e42667a6582cf858e7185cd">ENQUEUEPROC</a>   <a class="el" href="dmxinputinit_8h.html#adbd955b9ddbc5ffe38ff65e3f068f205">dmxEnqueueProcPtr</a></td></tr> 60<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#aa35a985e998ad5e2187e13434dca118a">CHECKPROC</a>   <a class="el" href="dmxinputinit_8h.html#a838cb45fd92d5cf506e4179b601f7dbc">dmxCheckSpecialProcPtr</a></td></tr> 61<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a52220397ecea855b3a99746e451426e1">BLOCK</a>   <a class="el" href="dmxinput_8h.html#a3a7195ab3516c5354bac4ca80b2eedb7">DMXBlockType</a></td></tr> 62<tr><td colspan="2"><h2><a name="func-members"></a> 63Functions</h2></td></tr> 64<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#ae823cb66bf7678148ffadf3202034921">mouUSBRead</a> (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, CHECKPROC checkspecial, BLOCK block)</td></tr> 65<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a6c0a19ce4ec02df96f781152a8cc5d36">mouUSBInit</a> (DevicePtr pDev)</td></tr> 66<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a919a8e16f26a0742cda7c9824270501b">mouUSBOn</a> (DevicePtr pDev)</td></tr> 67<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a006f4bb1b13582dc5d54ba662b84a4d7">mouUSBGetMap</a> (DevicePtr pDev, unsigned char *<a class="el" href="usb-keyboard_8c.html#a2187a19657fb0b38c67dbafc7dd74c4d">map</a>, int *nButtons)</td></tr> 68<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="usb-mouse_8c.html#a422205f883732c44c29093a832254579">mouUSBGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr> 69</table> 70<hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 71<div class="textblock"><p>This code implements a low-level device driver for a USB mouse. </p> 72</div><hr/><h2>Define Documentation</h2> 73<a class="anchor" id="a52220397ecea855b3a99746e451426e1"></a><!-- doxytag: member="usb-mouse.c::BLOCK" ref="a52220397ecea855b3a99746e451426e1" args="" --> 74<div class="memitem"> 75<div class="memproto"> 76 <table class="memname"> 77 <tr> 78 <td class="memname">#define BLOCK   <a class="el" href="dmxinput_8h.html#a3a7195ab3516c5354bac4ca80b2eedb7">DMXBlockType</a></td> 79 </tr> 80 </table> 81</div> 82<div class="memdoc"> 83 84</div> 85</div> 86<a class="anchor" id="aa35a985e998ad5e2187e13434dca118a"></a><!-- doxytag: member="usb-mouse.c::CHECKPROC" ref="aa35a985e998ad5e2187e13434dca118a" args="" --> 87<div class="memitem"> 88<div class="memproto"> 89 <table class="memname"> 90 <tr> 91 <td class="memname">#define CHECKPROC   <a class="el" href="dmxinputinit_8h.html#a838cb45fd92d5cf506e4179b601f7dbc">dmxCheckSpecialProcPtr</a></td> 92 </tr> 93 </table> 94</div> 95<div class="memdoc"> 96 97</div> 98</div> 99<a class="anchor" id="a017080ce5e42667a6582cf858e7185cd"></a><!-- doxytag: member="usb-mouse.c::ENQUEUEPROC" ref="a017080ce5e42667a6582cf858e7185cd" args="" --> 100<div class="memitem"> 101<div class="memproto"> 102 <table class="memname"> 103 <tr> 104 <td class="memname">#define ENQUEUEPROC   <a class="el" href="dmxinputinit_8h.html#adbd955b9ddbc5ffe38ff65e3f068f205">dmxEnqueueProcPtr</a></td> 105 </tr> 106 </table> 107</div> 108<div class="memdoc"> 109 110</div> 111</div> 112<a class="anchor" id="a6bce6020b913db8afe5d94bc63d1b355"></a><!-- doxytag: member="usb-mouse.c::FATAL0" ref="a6bce6020b913db8afe5d94bc63d1b355" args="(f)" --> 113<div class="memitem"> 114<div class="memproto"> 115 <table class="memname"> 116 <tr> 117 <td class="memname">#define FATAL0</td> 118 <td>(</td> 119 <td class="paramtype"> </td> 120 <td class="paramname">f</td><td>)</td> 121 <td>   dmxLog(dmxFatal,f)</td> 122 </tr> 123 </table> 124</div> 125<div class="memdoc"> 126 127</div> 128</div> 129<a class="anchor" id="a11bcea7c6bc7dbe400a3855f5b8676ce"></a><!-- doxytag: member="usb-mouse.c::FATAL1" ref="a11bcea7c6bc7dbe400a3855f5b8676ce" args="(f, a)" --> 130<div class="memitem"> 131<div class="memproto"> 132 <table class="memname"> 133 <tr> 134 <td class="memname">#define FATAL1</td> 135 <td>(</td> 136 <td class="paramtype"> </td> 137 <td class="paramname">f, </td> 138 </tr> 139 <tr> 140 <td class="paramkey"></td> 141 <td></td> 142 <td class="paramtype"> </td> 143 <td class="paramname">a </td> 144 </tr> 145 <tr> 146 <td></td> 147 <td>)</td> 148 <td></td><td>   dmxLog(dmxFatal,f,a)</td> 149 </tr> 150 </table> 151</div> 152<div class="memdoc"> 153 154</div> 155</div> 156<a class="anchor" id="a7952c9e9fe9c75be4964fc53a4299183"></a><!-- doxytag: member="usb-mouse.c::FATAL2" ref="a7952c9e9fe9c75be4964fc53a4299183" args="(f, a, b)" --> 157<div class="memitem"> 158<div class="memproto"> 159 <table class="memname"> 160 <tr> 161 <td class="memname">#define FATAL2</td> 162 <td>(</td> 163 <td class="paramtype"> </td> 164 <td class="paramname">f, </td> 165 </tr> 166 <tr> 167 <td class="paramkey"></td> 168 <td></td> 169 <td class="paramtype"> </td> 170 <td class="paramname">a, </td> 171 </tr> 172 <tr> 173 <td class="paramkey"></td> 174 <td></td> 175 <td class="paramtype"> </td> 176 <td class="paramname">b </td> 177 </tr> 178 <tr> 179 <td></td> 180 <td>)</td> 181 <td></td><td>   dmxLog(dmxFatal,f,a,b)</td> 182 </tr> 183 </table> 184</div> 185<div class="memdoc"> 186 187</div> 188</div> 189<a class="anchor" id="aacf069d346230dd96812d5395728eef2"></a><!-- doxytag: member="usb-mouse.c::GETPRIV" ref="aacf069d346230dd96812d5395728eef2" args="" --> 190<div class="memitem"> 191<div class="memproto"> 192 <table class="memname"> 193 <tr> 194 <td class="memname">#define GETPRIV</td> 195 </tr> 196 </table> 197</div> 198<div class="memdoc"> 199<b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="struct__myPrivate.html">myPrivate</a> *priv \ 200 = ((<a class="code" href="dmxinput_8h.html#adb148db00fe0adf1938b815b9b934d26">DMXLocalInputInfoPtr</a>)(pDev->devicePrivate))->private 201</pre></div> 202<p>Referenced by <a class="el" href="usb-mouse_8h.html#a919a8e16f26a0742cda7c9824270501b">mouUSBOn()</a>.</p> 203 204</div> 205</div> 206<a class="anchor" id="a837722a322e811d5e42242655f277b87"></a><!-- doxytag: member="usb-mouse.c::LOG0" ref="a837722a322e811d5e42242655f277b87" args="(f)" --> 207<div class="memitem"> 208<div class="memproto"> 209 <table class="memname"> 210 <tr> 211 <td class="memname">#define LOG0</td> 212 <td>(</td> 213 <td class="paramtype"> </td> 214 <td class="paramname">f</td><td>)</td> 215 <td>   dmxLog(dmxDebug,f)</td> 216 </tr> 217 </table> 218</div> 219<div class="memdoc"> 220 221</div> 222</div> 223<a class="anchor" id="aab4b3434c36117a2ecdddec40716d97a"></a><!-- doxytag: member="usb-mouse.c::LOG1" ref="aab4b3434c36117a2ecdddec40716d97a" args="(f, a)" --> 224<div class="memitem"> 225<div class="memproto"> 226 <table class="memname"> 227 <tr> 228 <td class="memname">#define LOG1</td> 229 <td>(</td> 230 <td class="paramtype"> </td> 231 <td class="paramname">f, </td> 232 </tr> 233 <tr> 234 <td class="paramkey"></td> 235 <td></td> 236 <td class="paramtype"> </td> 237 <td class="paramname">a </td> 238 </tr> 239 <tr> 240 <td></td> 241 <td>)</td> 242 <td></td><td>   dmxLog(dmxDebug,f,a)</td> 243 </tr> 244 </table> 245</div> 246<div class="memdoc"> 247 248</div> 249</div> 250<a class="anchor" id="a16da5d597d9bfb9e569a9bfb6996382c"></a><!-- doxytag: member="usb-mouse.c::LOG2" ref="a16da5d597d9bfb9e569a9bfb6996382c" args="(f, a, b)" --> 251<div class="memitem"> 252<div class="memproto"> 253 <table class="memname"> 254 <tr> 255 <td class="memname">#define LOG2</td> 256 <td>(</td> 257 <td class="paramtype"> </td> 258 <td class="paramname">f, </td> 259 </tr> 260 <tr> 261 <td class="paramkey"></td> 262 <td></td> 263 <td class="paramtype"> </td> 264 <td class="paramname">a, </td> 265 </tr> 266 <tr> 267 <td class="paramkey"></td> 268 <td></td> 269 <td class="paramtype"> </td> 270 <td class="paramname">b </td> 271 </tr> 272 <tr> 273 <td></td> 274 <td>)</td> 275 <td></td><td>   dmxLog(dmxDebug,f,a,b)</td> 276 </tr> 277 </table> 278</div> 279<div class="memdoc"> 280 281</div> 282</div> 283<a class="anchor" id="a8247f0bca25789d2ac27674eb26e223f"></a><!-- doxytag: member="usb-mouse.c::LOG3" ref="a8247f0bca25789d2ac27674eb26e223f" args="(f, a, b, c)" --> 284<div class="memitem"> 285<div class="memproto"> 286 <table class="memname"> 287 <tr> 288 <td class="memname">#define LOG3</td> 289 <td>(</td> 290 <td class="paramtype"> </td> 291 <td class="paramname">f, </td> 292 </tr> 293 <tr> 294 <td class="paramkey"></td> 295 <td></td> 296 <td class="paramtype"> </td> 297 <td class="paramname">a, </td> 298 </tr> 299 <tr> 300 <td class="paramkey"></td> 301 <td></td> 302 <td class="paramtype"> </td> 303 <td class="paramname">b, </td> 304 </tr> 305 <tr> 306 <td class="paramkey"></td> 307 <td></td> 308 <td class="paramtype"> </td> 309 <td class="paramname">c </td> 310 </tr> 311 <tr> 312 <td></td> 313 <td>)</td> 314 <td></td><td>   dmxLog(dmxDebug,f,a,b,c)</td> 315 </tr> 316 </table> 317</div> 318<div class="memdoc"> 319 320</div> 321</div> 322<a class="anchor" id="a11a17082bee3b1b8217ce8a12adcf814"></a><!-- doxytag: member="usb-mouse.c::MOTIONPROC" ref="a11a17082bee3b1b8217ce8a12adcf814" args="" --> 323<div class="memitem"> 324<div class="memproto"> 325 <table class="memname"> 326 <tr> 327 <td class="memname">#define MOTIONPROC   <a class="el" href="dmxinputinit_8h.html#a1279820425966adabf5c77357e4a289c">dmxMotionProcPtr</a></td> 328 </tr> 329 </table> 330</div> 331<div class="memdoc"> 332 333</div> 334</div> 335<hr/><h2>Function Documentation</h2> 336<a class="anchor" id="a422205f883732c44c29093a832254579"></a><!-- doxytag: member="usb-mouse.c::mouUSBGetInfo" ref="a422205f883732c44c29093a832254579" args="(DevicePtr pDev, DMXLocalInitInfoPtr info)" --> 337<div class="memitem"> 338<div class="memproto"> 339 <table class="memname"> 340 <tr> 341 <td class="memname">void mouUSBGetInfo </td> 342 <td>(</td> 343 <td class="paramtype">DevicePtr </td> 344 <td class="paramname"><em>pDev</em>, </td> 345 </tr> 346 <tr> 347 <td class="paramkey"></td> 348 <td></td> 349 <td class="paramtype"><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> </td> 350 <td class="paramname"><em>info</em> </td> 351 </tr> 352 <tr> 353 <td></td> 354 <td>)</td> 355 <td></td><td></td> 356 </tr> 357 </table> 358</div> 359<div class="memdoc"> 360<p>Fill the <em>info</em> structure with information needed to initialize <em>pDev</em>. </p> 361 362<p>References <a class="el" href="struct__DMXLocalInitInfo.html#a58b2e6764967add7eda1c1f2f0860abc">_DMXLocalInitInfo::buttonClass</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a06626a99542714bbd032e9e12a8c6b55">_DMXLocalInitInfo::keyClass</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a02861e7e9c24381a229567d36e7a68b7">_DMXLocalInitInfo::keySyms</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a43d86cc82219794bba7ba1ee66472a45">_DMXLocalInitInfo::map</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a5de8a5ac80a30840cba0d9f3074289ca">_DMXLocalInitInfo::maxres</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a63477e691c43eca2dbf569fb0feb74be">_DMXLocalInitInfo::maxval</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a139fed62b89a92d80997166c8cfcdebf">_DMXLocalInitInfo::minres</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a0c47ee21909227a1ea5d40ba473e0e25">_DMXLocalInitInfo::minval</a>, <a class="el" href="usb-mouse_8c.html#a006f4bb1b13582dc5d54ba662b84a4d7">mouUSBGetMap()</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a9264f367a1c1e252679299b00f94458c">_DMXLocalInitInfo::numButtons</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a5e192625179bbed020a720e448c789aa">_DMXLocalInitInfo::numRelAxes</a>, <a class="el" href="struct__DMXLocalInitInfo.html#a1c52bc6e1c328ef9e808a111dd050fc2">_DMXLocalInitInfo::ptrFeedbackClass</a>, <a class="el" href="struct__DMXLocalInitInfo.html#abb910012dc1abde90f954354f8ceb2a1">_DMXLocalInitInfo::res</a>, and <a class="el" href="struct__DMXLocalInitInfo.html#a9af277d2da1ade2138488a413e9c5ceb">_DMXLocalInitInfo::valuatorClass</a>.</p> 363 364</div> 365</div> 366<a class="anchor" id="a006f4bb1b13582dc5d54ba662b84a4d7"></a><!-- doxytag: member="usb-mouse.c::mouUSBGetMap" ref="a006f4bb1b13582dc5d54ba662b84a4d7" args="(DevicePtr pDev, unsigned char *map, int *nButtons)" --> 367<div class="memitem"> 368<div class="memproto"> 369 <table class="memname"> 370 <tr> 371 <td class="memname">static void mouUSBGetMap </td> 372 <td>(</td> 373 <td class="paramtype">DevicePtr </td> 374 <td class="paramname"><em>pDev</em>, </td> 375 </tr> 376 <tr> 377 <td class="paramkey"></td> 378 <td></td> 379 <td class="paramtype">unsigned char * </td> 380 <td class="paramname"><em>map</em>, </td> 381 </tr> 382 <tr> 383 <td class="paramkey"></td> 384 <td></td> 385 <td class="paramtype">int * </td> 386 <td class="paramname"><em>nButtons</em> </td> 387 </tr> 388 <tr> 389 <td></td> 390 <td>)</td> 391 <td></td><td><code> [static]</code></td> 392 </tr> 393 </table> 394</div> 395<div class="memdoc"> 396 397<p>Referenced by <a class="el" href="usb-mouse_8h.html#a422205f883732c44c29093a832254579">mouUSBGetInfo()</a>.</p> 398 399</div> 400</div> 401<a class="anchor" id="a6c0a19ce4ec02df96f781152a8cc5d36"></a><!-- doxytag: member="usb-mouse.c::mouUSBInit" ref="a6c0a19ce4ec02df96f781152a8cc5d36" args="(DevicePtr pDev)" --> 402<div class="memitem"> 403<div class="memproto"> 404 <table class="memname"> 405 <tr> 406 <td class="memname">void mouUSBInit </td> 407 <td>(</td> 408 <td class="paramtype">DevicePtr </td> 409 <td class="paramname"><em>pDev</em></td><td>)</td> 410 <td></td> 411 </tr> 412 </table> 413</div> 414<div class="memdoc"> 415<p>Initialize <em>pDev</em> using <a class="el" href="usb-common_8h.html#a7f9b3a6d320a9ddbed689f4e12acb443">usbInit</a>. </p> 416 417<p>References <a class="el" href="usb-common_8c.html#a7f9b3a6d320a9ddbed689f4e12acb443">usbInit()</a>, and <a class="el" href="usb-common_8h.html#a5e4410bf95babe73bcecc612691fc2d0a6bd9e53b1b5835e304e54ba13a227de7">usbMouse</a>.</p> 418 419<p>Referenced by <a class="el" href="usb-mouse_8h.html#a919a8e16f26a0742cda7c9824270501b">mouUSBOn()</a>.</p> 420 421</div> 422</div> 423<a class="anchor" id="a919a8e16f26a0742cda7c9824270501b"></a><!-- doxytag: member="usb-mouse.c::mouUSBOn" ref="a919a8e16f26a0742cda7c9824270501b" args="(DevicePtr pDev)" --> 424<div class="memitem"> 425<div class="memproto"> 426 <table class="memname"> 427 <tr> 428 <td class="memname">int mouUSBOn </td> 429 <td>(</td> 430 <td class="paramtype">DevicePtr </td> 431 <td class="paramname"><em>pDev</em></td><td>)</td> 432 <td></td> 433 </tr> 434 </table> 435</div> 436<div class="memdoc"> 437<p>Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </p> 438 439<p>References <a class="el" href="usb-mouse_8c.html#aacf069d346230dd96812d5395728eef2">GETPRIV</a>, and <a class="el" href="usb-mouse_8c.html#a6c0a19ce4ec02df96f781152a8cc5d36">mouUSBInit()</a>.</p> 440 441</div> 442</div> 443<a class="anchor" id="ae823cb66bf7678148ffadf3202034921"></a><!-- doxytag: member="usb-mouse.c::mouUSBRead" ref="ae823cb66bf7678148ffadf3202034921" args="(DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, CHECKPROC checkspecial, BLOCK block)" --> 444<div class="memitem"> 445<div class="memproto"> 446 <table class="memname"> 447 <tr> 448 <td class="memname">void mouUSBRead </td> 449 <td>(</td> 450 <td class="paramtype">DevicePtr </td> 451 <td class="paramname"><em>pDev</em>, </td> 452 </tr> 453 <tr> 454 <td class="paramkey"></td> 455 <td></td> 456 <td class="paramtype">MOTIONPROC </td> 457 <td class="paramname"><em>motion</em>, </td> 458 </tr> 459 <tr> 460 <td class="paramkey"></td> 461 <td></td> 462 <td class="paramtype">ENQUEUEPROC </td> 463 <td class="paramname"><em>enqueue</em>, </td> 464 </tr> 465 <tr> 466 <td class="paramkey"></td> 467 <td></td> 468 <td class="paramtype">CHECKPROC </td> 469 <td class="paramname"><em>checkspecial</em>, </td> 470 </tr> 471 <tr> 472 <td class="paramkey"></td> 473 <td></td> 474 <td class="paramtype">BLOCK </td> 475 <td class="paramname"><em>block</em> </td> 476 </tr> 477 <tr> 478 <td></td> 479 <td>)</td> 480 <td></td><td></td> 481 </tr> 482 </table> 483</div> 484<div class="memdoc"> 485<p>Read the USB device using <a class="el" href="usb-common_8h.html#aea8c9cef438c8851ef7f47d7167152cb">usbRead</a>. </p> 486 487<p>References <a class="el" href="usb-common_8c.html#ae20f3b14463c8e288041f9970e388950">usbRead()</a>.</p> 488 489</div> 490</div> 491</div> 492</div> 493 <div id="nav-path" class="navpath"> 494 <ul> 495 <li class="navelem"><a class="el" href="usb-mouse_8c.html">usb-mouse.c</a> </li> 496 <hr> 497 <address> 498 <small> 499 Generated June 29, 2004 for <a 500 href="http://dmx.sourceforge.net">Distributed Multihead X</a> by 501 <a href="http://www.doxygen.org/index.html">doxygen</a> 502 1.3.4. 503 </small> 504 </addres> 505 </hr> 506 </body> 507</html> 508