First import
[xorg_rtime.git] / xorg-server-1.4 / hw / dmx / doc / html / dmxmotion_8c.html
blobecf9922a6987ac575c21b6c951bcd3f4a065c067
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5 <title>File Index</title>
6 <link href="doxygen.css" rel="stylesheet" type="text/css">
7 </head>
8 <body>
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
11 <h1>dmxmotion.c File Reference</h1><code>#include "inputstr.h"</code><br>
12 <code>#include "<a class="el" href="dmxinputinit_8h-source.html">dmxinputinit.h</a>"</code><br>
13 <code>#include "<a class="el" href="dmxcommon_8h-source.html">dmxcommon.h</a>"</code><br>
14 <code>#include "<a class="el" href="dmxmotion_8h-source.html">dmxmotion.h</a>"</code><br>
15 <table border=0 cellpadding=0 cellspacing=0>
16 <tr><td></td></tr>
17 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxmotion_8c.html#a1">dmxPointerGetMotionBufferSize</a> (void)</td></tr>
20 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxmotion_8c.html#a2">dmxPointerGetMotionEvents</a> (DeviceIntPtr pDevice, xTimecoord *coords, unsigned long start, unsigned long stop, ScreenPtr pScreen)</td></tr>
22 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="dmxmotion_8c.html#a3">dmxPointerPutMotionEvent</a> (DeviceIntPtr pDevice, int firstAxis, int axesCount, int *v, unsigned long time)</td></tr>
24 </table>
25 <hr><a name="_details"></a><h2>Detailed Description</h2>
26 This file provides functions similar to miPointerGetMotionEvents and miPointerPutMotionEvents, with the exception that devices with more than two axes are fully supported. These routines may be used only for motion buffers for extension devices, and are <em>not</em> compatible replacements for the mi routines.<hr><h2>Function Documentation</h2>
27 <a class="anchor" name="a1" doxytag="dmxmotion.c::dmxPointerGetMotionBufferSize" ></a><p>
28 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
29 <tr>
30 <td class="mdRow">
31 <table cellpadding="0" cellspacing="0" border="0">
32 <tr>
33 <td class="md" nowrap valign="top"> int dmxPointerGetMotionBufferSize </td>
34 <td class="md" valign="top">(&nbsp;</td>
35 <td class="md" nowrap valign="top">void&nbsp;</td>
36 <td class="mdname1" valign="top" nowrap> </td>
37 <td class="md" valign="top">&nbsp;)&nbsp;</td>
38 <td class="md" nowrap></td>
39 </tr>
41 </table>
42 </td>
43 </tr>
44 </table>
45 <table cellspacing=5 cellpadding=0 border=0>
46 <tr>
47 <td>
48 &nbsp;
49 </td>
50 <td>
52 <p>
53 Return size of motion buffer. <dl compact><dt><b>See also:</b></dt><dd>DMX_MOTION_SIZE </dd></dl>
54 </td>
55 </tr>
56 </table>
57 <a class="anchor" name="a2" doxytag="dmxmotion.c::dmxPointerGetMotionEvents" ></a><p>
58 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
59 <tr>
60 <td class="mdRow">
61 <table cellpadding="0" cellspacing="0" border="0">
62 <tr>
63 <td class="md" nowrap valign="top"> int dmxPointerGetMotionEvents </td>
64 <td class="md" valign="top">(&nbsp;</td>
65 <td class="md" nowrap valign="top">DeviceIntPtr&nbsp;</td>
66 <td class="mdname" nowrap> <em>pDevice</em>, </td>
67 </tr>
68 <tr>
69 <td></td>
70 <td></td>
71 <td class="md" nowrap>xTimecoord *&nbsp;</td>
72 <td class="mdname" nowrap> <em>coords</em>, </td>
73 </tr>
74 <tr>
75 <td></td>
76 <td></td>
77 <td class="md" nowrap>unsigned long&nbsp;</td>
78 <td class="mdname" nowrap> <em>start</em>, </td>
79 </tr>
80 <tr>
81 <td></td>
82 <td></td>
83 <td class="md" nowrap>unsigned long&nbsp;</td>
84 <td class="mdname" nowrap> <em>stop</em>, </td>
85 </tr>
86 <tr>
87 <td></td>
88 <td></td>
89 <td class="md" nowrap>ScreenPtr&nbsp;</td>
90 <td class="mdname" nowrap> <em>pScreen</em></td>
91 </tr>
92 <tr>
93 <td></td>
94 <td class="md">)&nbsp;</td>
95 <td class="md" colspan="2"></td>
96 </tr>
98 </table>
99 </td>
100 </tr>
101 </table>
102 <table cellspacing=5 cellpadding=0 border=0>
103 <tr>
104 <td>
105 &nbsp;
106 </td>
107 <td>
110 This routine performs the same function as <em>miPointerGetMotionEvents</em>: the events in the motion history that are between the start and stop times (in mS) are placed in the coords vector, and the count of the number of items so placed is returned. This routine is called from dix/devices.c so that coords can hold valuator-&gt;numMotionEvents events. This routine is called from <em>Xi/gtmotion</em>.c with coords large enough to hold the same number of events in a variable-length extended <em>xTimecoord</em> structure. This provides sufficient data for the <em>XGetDeviceMotionEvents</em> library call, and would be identical to <em>miPointerGetMotionEvents</em> for devices with only 2 axes (i.e., core pointers) if <em>xTimecoord</em> used 32bit integers.<p>
111 Because DMX uses the mi* routines for all core devices, this routine only has to support extension devices using the polymorphic coords. Because compatibility with miPointerGetMotionEvents is not possible, it is not provided. </td>
112 </tr>
113 </table>
114 <a class="anchor" name="a3" doxytag="dmxmotion.c::dmxPointerPutMotionEvent" ></a><p>
115 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
116 <tr>
117 <td class="mdRow">
118 <table cellpadding="0" cellspacing="0" border="0">
119 <tr>
120 <td class="md" nowrap valign="top"> void dmxPointerPutMotionEvent </td>
121 <td class="md" valign="top">(&nbsp;</td>
122 <td class="md" nowrap valign="top">DeviceIntPtr&nbsp;</td>
123 <td class="mdname" nowrap> <em>pDevice</em>, </td>
124 </tr>
125 <tr>
126 <td></td>
127 <td></td>
128 <td class="md" nowrap>int&nbsp;</td>
129 <td class="mdname" nowrap> <em>firstAxis</em>, </td>
130 </tr>
131 <tr>
132 <td></td>
133 <td></td>
134 <td class="md" nowrap>int&nbsp;</td>
135 <td class="mdname" nowrap> <em>axesCount</em>, </td>
136 </tr>
137 <tr>
138 <td></td>
139 <td></td>
140 <td class="md" nowrap>int *&nbsp;</td>
141 <td class="mdname" nowrap> <em>v</em>, </td>
142 </tr>
143 <tr>
144 <td></td>
145 <td></td>
146 <td class="md" nowrap>unsigned long&nbsp;</td>
147 <td class="mdname" nowrap> <em>time</em></td>
148 </tr>
149 <tr>
150 <td></td>
151 <td class="md">)&nbsp;</td>
152 <td class="md" colspan="2"></td>
153 </tr>
155 </table>
156 </td>
157 </tr>
158 </table>
159 <table cellspacing=5 cellpadding=0 border=0>
160 <tr>
161 <td>
162 &nbsp;
163 </td>
164 <td>
167 This routine adds an event to the motion history. A similar function is performed by miPointerMove for the mi versions of these routines. </td>
168 </tr>
169 </table>
170 <hr>
171 <address>
172 <small>
173 Generated June 29, 2004 for <a
174 href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
175 <a href="http://www.doxygen.org/index.html">doxygen</a>
176 1.3.4.
177 </small>
178 </addres>
179 </hr>
180 </body>
181 </html>