1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <meta http-equiv=
"Content-Type" content=
"text/html;charset=iso-8859-1">
5 <title>File Index
</title>
6 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class=
"qindex"><a class=
"qindex" href=
"main.html">Main
Page
</a> |
<a class=
"qindex" href=
"classes.html">Alphabetical
List
</a> |
<a class=
"qindex" href=
"annotated.html">Data
Structures
</a> |
<a class=
"qindex" href=
"files.html">File
List
</a> |
<a class=
"qindex" href=
"functions.html">Data
Fields
</a> |
<a class=
"qindex" href=
"globals.html">Globals
</a></div>
11 <h1>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>
17 <tr><td colspan=
2><br><h2>Functions
</h2></td></tr>
18 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>int
</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
</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
</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>
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">
31 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
33 <td class=
"md" nowrap
valign=
"top"> int dmxPointerGetMotionBufferSize
</td>
34 <td class=
"md" valign=
"top">(
</td>
35 <td class=
"md" nowrap
valign=
"top">void
</td>
36 <td class=
"mdname1" valign=
"top" nowrap
> </td>
37 <td class=
"md" valign=
"top"> )
</td>
38 <td class=
"md" nowrap
></td>
45 <table cellspacing=
5 cellpadding=
0 border=
0>
53 Return size of motion buffer.
<dl compact
><dt><b>See also:
</b></dt><dd>DMX_MOTION_SIZE
</dd></dl>
57 <a class=
"anchor" name=
"a2" doxytag=
"dmxmotion.c::dmxPointerGetMotionEvents" ></a><p>
58 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
61 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
63 <td class=
"md" nowrap
valign=
"top"> int dmxPointerGetMotionEvents
</td>
64 <td class=
"md" valign=
"top">(
</td>
65 <td class=
"md" nowrap
valign=
"top">DeviceIntPtr
</td>
66 <td class=
"mdname" nowrap
> <em>pDevice
</em>,
</td>
71 <td class=
"md" nowrap
>xTimecoord *
</td>
72 <td class=
"mdname" nowrap
> <em>coords
</em>,
</td>
77 <td class=
"md" nowrap
>unsigned long
</td>
78 <td class=
"mdname" nowrap
> <em>start
</em>,
</td>
83 <td class=
"md" nowrap
>unsigned long
</td>
84 <td class=
"mdname" nowrap
> <em>stop
</em>,
</td>
89 <td class=
"md" nowrap
>ScreenPtr
</td>
90 <td class=
"mdname" nowrap
> <em>pScreen
</em></td>
94 <td class=
"md">)
</td>
95 <td class=
"md" colspan=
"2"></td>
102 <table cellspacing=
5 cellpadding=
0 border=
0>
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-
>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>
114 <a class=
"anchor" name=
"a3" doxytag=
"dmxmotion.c::dmxPointerPutMotionEvent" ></a><p>
115 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
118 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
120 <td class=
"md" nowrap
valign=
"top"> void dmxPointerPutMotionEvent
</td>
121 <td class=
"md" valign=
"top">(
</td>
122 <td class=
"md" nowrap
valign=
"top">DeviceIntPtr
</td>
123 <td class=
"mdname" nowrap
> <em>pDevice
</em>,
</td>
128 <td class=
"md" nowrap
>int
</td>
129 <td class=
"mdname" nowrap
> <em>firstAxis
</em>,
</td>
134 <td class=
"md" nowrap
>int
</td>
135 <td class=
"mdname" nowrap
> <em>axesCount
</em>,
</td>
140 <td class=
"md" nowrap
>int *
</td>
141 <td class=
"mdname" nowrap
> <em>v
</em>,
</td>
146 <td class=
"md" nowrap
>unsigned long
</td>
147 <td class=
"mdname" nowrap
> <em>time
</em></td>
151 <td class=
"md">)
</td>
152 <td class=
"md" colspan=
"2"></td>
159 <table cellspacing=
5 cellpadding=
0 border=
0>
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>
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>