6
6
<link href="doxygen.css" rel="stylesheet" type="text/css">
9
<!-- Generated by Doxygen 1.7.1 -->
10
<div class="navigation" id="top">
9
<!-- Generated by Doxygen 1.7.3 -->
10
<div id="navrow1" class="tabs">
12
11
<ul class="tablist">
13
<li><a href="main.html"><span>Main Page</span></a></li>
14
<li><a href="annotated.html"><span>Data Structures</span></a></li>
12
<li><a href="index.html"><span>Main Page</span></a></li>
13
<li><a href="annotated.html"><span>Data Structures</span></a></li>
15
14
<li class="current"><a href="files.html"><span>Files</span></a></li>
17
<div id="navrow2" class="tabs2">
19
18
<ul class="tablist">
20
<li><a href="files.html"><span>File List</span></a></li>
19
<li><a href="files.html"><span>File List</span></a></li>
21
20
<li><a href="globals.html"><span>Globals</span></a></li>
24
<div id="side-nav" class="ui-resizable side-nav-resizable">
26
<div id="nav-tree-contents">
29
<div id="splitbar" style="-moz-user-select:none;"
30
class="ui-resizable-handle">
33
<script type="text/javascript">
34
initNavTree('dmxmotion_8h.html','');
36
<div id="doc-content">
25
37
<div class="header">
26
38
<div class="summary">
27
39
<a href="#func-members">Functions</a> </div>
34
46
<table class="memberdecls">
35
47
<tr><td colspan="2"><h2><a name="func-members"></a>
36
48
Functions</h2></td></tr>
37
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#a71e31cfbffb3603068d897374e173400">dmxPointerGetMotionBufferSize</a> (void)</td></tr>
38
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#a6ebfa18908cd0473f3f23643e9ca2a58">dmxPointerGetMotionEvents</a> (DeviceIntPtr pDevice, xTimecoord *coords, unsigned long start, unsigned long stop, ScreenPtr pScreen)</td></tr>
39
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#abe71ba14a07f4077ca2658f81426f4c6">dmxPointerPutMotionEvent</a> (DeviceIntPtr pDevice, int firstAxis, int axesCount, int *v, unsigned long time)</td></tr>
49
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#a71e31cfbffb3603068d897374e173400">dmxPointerGetMotionBufferSize</a> (void)</td></tr>
50
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#a6ebfa18908cd0473f3f23643e9ca2a58">dmxPointerGetMotionEvents</a> (DeviceIntPtr pDevice, xTimecoord *coords, unsigned long start, unsigned long stop, ScreenPtr pScreen)</td></tr>
51
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="dmxmotion_8h.html#abe71ba14a07f4077ca2658f81426f4c6">dmxPointerPutMotionEvent</a> (DeviceIntPtr pDevice, int firstAxis, int axesCount, int *v, unsigned long time)</td></tr>
41
53
<hr/><a name="_details"></a><h2>Detailed Description</h2>
42
<p>Interface to functions supporting motion events. </p>
54
<div class="textblock"><p>Interface to functions supporting motion events. </p>
43
55
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="dmxmotion_8c.html">dmxmotion.c</a> </dd></dl>
44
<hr/><h2>Function Documentation</h2>
56
</div><hr/><h2>Function Documentation</h2>
45
57
<a class="anchor" id="a71e31cfbffb3603068d897374e173400"></a><!-- doxytag: member="dmxmotion.h::dmxPointerGetMotionBufferSize" ref="a71e31cfbffb3603068d897374e173400" args="(void)" -->
46
58
<div class="memitem">
47
59
<div class="memproto">
60
71
<p>Return size of motion buffer. </p>
61
72
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a> </dd></dl>
74
<p>References <a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a>.</p>
63
76
<p>Referenced by <a class="el" href="dmxinputinit_8c.html#aee6196e74882c16d5cd939d88b3b6fdc">dmxDeviceOnOff()</a>.</p>
72
85
<td class="memname">int dmxPointerGetMotionEvents </td>
74
<td class="paramtype">DeviceIntPtr </td>
75
<td class="paramname"> <em>pDevice</em>, </td>
78
<td class="paramkey"></td>
80
<td class="paramtype">xTimecoord * </td>
81
<td class="paramname"> <em>coords</em>, </td>
84
<td class="paramkey"></td>
86
<td class="paramtype">unsigned long </td>
87
<td class="paramname"> <em>start</em>, </td>
90
<td class="paramkey"></td>
92
<td class="paramtype">unsigned long </td>
93
<td class="paramname"> <em>stop</em>, </td>
96
<td class="paramkey"></td>
98
<td class="paramtype">ScreenPtr </td>
99
<td class="paramname"> <em>pScreen</em></td><td> </td>
87
<td class="paramtype">DeviceIntPtr </td>
88
<td class="paramname"><em>pDevice</em>, </td>
91
<td class="paramkey"></td>
93
<td class="paramtype">xTimecoord * </td>
94
<td class="paramname"><em>coords</em>, </td>
97
<td class="paramkey"></td>
99
<td class="paramtype">unsigned long </td>
100
<td class="paramname"><em>start</em>, </td>
103
<td class="paramkey"></td>
105
<td class="paramtype">unsigned long </td>
106
<td class="paramname"><em>stop</em>, </td>
109
<td class="paramkey"></td>
111
<td class="paramtype">ScreenPtr </td>
112
<td class="paramname"><em>pScreen</em> </td>
104
<td></td><td></td><td></td>
109
122
<p>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->numMotionEvents events. This routine is called from <em>Xi/gtmotion.c</em> 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>
110
123
<p>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. </p>
112
<p>References <a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a>, and <a class="el" href="dmxmotion_8c.html#ab1f1378062fc8a2c5b4132193e143c95">OFFSET</a>.</p>
125
<p>References <a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a>, <a class="el" href="dmxcommon_8h.html#ae60813d58a79b6dae5b98321fd7e1866">GETDMXLOCALFROMPDEVICE</a>, and <a class="el" href="dmxmotion_8c.html#ab1f1378062fc8a2c5b4132193e143c95">OFFSET</a>.</p>
121
134
<td class="memname">void dmxPointerPutMotionEvent </td>
123
<td class="paramtype">DeviceIntPtr </td>
124
<td class="paramname"> <em>pDevice</em>, </td>
127
<td class="paramkey"></td>
129
<td class="paramtype">int </td>
130
<td class="paramname"> <em>firstAxis</em>, </td>
133
<td class="paramkey"></td>
135
<td class="paramtype">int </td>
136
<td class="paramname"> <em>axesCount</em>, </td>
139
<td class="paramkey"></td>
141
<td class="paramtype">int * </td>
142
<td class="paramname"> <em>v</em>, </td>
145
<td class="paramkey"></td>
147
<td class="paramtype">unsigned long </td>
148
<td class="paramname"> <em>time</em></td><td> </td>
136
<td class="paramtype">DeviceIntPtr </td>
137
<td class="paramname"><em>pDevice</em>, </td>
140
<td class="paramkey"></td>
142
<td class="paramtype">int </td>
143
<td class="paramname"><em>firstAxis</em>, </td>
146
<td class="paramkey"></td>
148
<td class="paramtype">int </td>
149
<td class="paramname"><em>axesCount</em>, </td>
152
<td class="paramkey"></td>
154
<td class="paramtype">int * </td>
155
<td class="paramname"><em>v</em>, </td>
158
<td class="paramkey"></td>
160
<td class="paramtype">unsigned long </td>
161
<td class="paramname"><em>time</em> </td>
153
<td></td><td></td><td></td>
157
170
<div class="memdoc">
158
171
<p>This routine adds an event to the motion history. A similar function is performed by miPointerMove for the mi versions of these routines. </p>
160
<p>References <a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a>, and <a class="el" href="dmxmotion_8c.html#ab1f1378062fc8a2c5b4132193e143c95">OFFSET</a>.</p>
173
<p>References <a class="el" href="dmxinputinit_8h.html#aa5877f857ec01a4754c187147f3e34f1">DMX_MOTION_SIZE</a>, <a class="el" href="dmxcommon_8h.html#ae60813d58a79b6dae5b98321fd7e1866">GETDMXLOCALFROMPDEVICE</a>, and <a class="el" href="dmxmotion_8c.html#ab1f1378062fc8a2c5b4132193e143c95">OFFSET</a>.</p>
179
<div id="nav-path" class="navpath">
181
<li class="navelem"><a class="el" href="dmxmotion_8h.html">dmxmotion.h</a> </li>