2008/10/23 Joel Matthys <span dir="ltr">&lt;<a href="mailto:jwmatthys@yahoo.com">jwmatthys@yahoo.com</a>&gt;</span><br><div class="gmail_quote"><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><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>