I agree that it is strange. It looks like a half-implemented feature. A commented out part in <a href="http://mouse-fm.ck">mouse-fm.ck</a> backs this up:<div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;msg.deltaX * .001 + a0 =&gt; a0;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//else if( msg.which == 1 ) msg.fdata =&gt; a1;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;msg.deltaY * .001 + a1 =&gt; a1;</div><div><br></div><div>Judging by Eduard&#39;s example, which can never by 1, at least not on my computer. There should be some y companion to fdata.</div>
<div><br></div><div>/Stefan</div><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 11:56 AM, Aylon Eduard <span dir="ltr">&lt;<a href="mailto:eduard.aylon@gmail.com">eduard.aylon@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br><br>thanks for you replies. However it seems strange that fdata tracks perfectly the pointer position (in range [0,1]) on the horizontal axis with fdata, so I&#39;d expected that there would be a data member for the vertical axis. (i.e. fdata being a tuple)<br>

Check the attached patch that outputs fdata.<br><br>Hid mouse;<br>HidMsg msg;<br><br>if (!mouse.openMouse(0)) me.exit();<br><br>while (true)<br>{<br>&nbsp;mouse =&gt; now;<br>&nbsp;while (mouse.recv( msg ))<br>&nbsp;{<br>&nbsp;&nbsp; if (msg.isMouseMotion())<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt; &quot;which: &quot;, msg.which, &quot;data:&quot;, msg.fdata,&nbsp; &quot;Delta:&quot;, msg.deltaX, msg.deltaY&gt;&gt;&gt;;<br>&nbsp;}<br>}<br><font color="#888888"><br>eduard<br><br></font><div class="gmail_quote">
<div><div></div><div class="Wj3C7c">On Thu, Oct 23, 2008 at 10:29 AM, Kassen <span dir="ltr">&lt;<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="Wj3C7c">2008/10/23 Joel Matthys <span dir="ltr">&lt;<a href="mailto:jwmatthys@yahoo.com" target="_blank">jwmatthys@yahoo.com</a>&gt;</span><br>

<div class="gmail_quote"><div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Actually, this is an interesting question. Hid tracks mouse motion rather than mouse position, so it&#39;s not so easy to create a ChucK patch that depends on the mouse&#39;s position on the screen. (ie trigger a sound when the mouse is in the upper left hand corner.)<br>



</blockquote></div><div><br>Indeed, the cursor position is something to be dealt with by the graphical shell of the OS, not the HID device. They are related but still different things. It would be interesting to be able to poll the OS for various things; it&#39;s there to take care of the basics, as far as I&#39;m concerned it can earn it&#39;s stay... the downside is that I understand that calls to the OS tend to be slow and typically not realtime; some realtime OS&#39;s have been made but the large two OS companies don&#39;t seem to think this is particularly important. There are realtime versions of the Linux kernel (and running one can make lots of sense for ChucKing) but I&#39;m not at all sure that also means the X-windowing system will be rt as well.<br>


<br>On the other hand; some pointing devices *do* have absolute locations; tablets and touch-screens do and in that case the absolute position on the tablet should correspond to the absolute position of the mouse pointer and that&#39;s something we *could* poll HID for. Another potentially interesting angle might be the touch-pads on most laptops. I could see Laptop-Orchestra style uses for reading absolute locations from those as well as data like the amount of pressure used. Sadly the more exciting features are there, the less likely they&#39;ll be to be standardised. Multi-touch surfaces would be great to be able to talk to, as would be pressure sesitivity (finger drumming, anyone?) but I&#39;m sure we could support those things (where available) across devices and OS&#39;s.<br>


<br>Yours,<br>Kas.<br></div></div><br>
<br></div></div><div class="Ih2E3d">_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!<br>
</div>