<br><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 2:37 PM, Andrew Turley &lt;<a href="mailto:aturley@acm.org">aturley@acm.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I don&#39;t know exactly what you&#39;re trying to do, but it might just be<br>
easier to use [key], [keyup] and [keyname].</blockquote><div><br class="webkit-block-placeholder"></div><div>Well, it was actually more of a learning experiment in trying to deal with [hid] objects. Eventually, I would like to get some sort of dedicated controller (possibly some game controller, or maybe a built one using arduino)...</div>
<div><br class="webkit-block-placeholder"></div><div>I did test your suggestion, and a couple of things came up that I noticed that would make using either [key] (and related) or [hid] differently.</div><div><br class="webkit-block-placeholder">
</div><div>1. [key] does not output anything unless the patch containing it is the front window.</div><div>2. [key] outputs any &#39;key-repeats&#39; that the system generates, while [hid] does not.</div><div><br class="webkit-block-placeholder">
</div><div><br class="webkit-block-placeholder"></div><div>I did notice one thing that is kind of weird in using [hid]... when I opened up the keyboard (device 0) and started it polling, any output from the keyboard is normal... I then turn off the polling, and type some more stuff... I then turn the polling back on, and everything that I typed while it was off gets output from [hid]...</div>
<div><br class="webkit-block-placeholder"></div><div>Strange.</div><div>&nbsp;<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">But if you do want to use [hid], once you have the device open you<br>

have to send a [1( to start polling. You might want to just hook a<br>
[print] object to the output to see what kind of info is coming out,<br>
and then [route] the messages accordingly.</blockquote><div><br class="webkit-block-placeholder"></div><div>Yup, got this to work, and am looking forward to testing it out on my laptop at home tonight...</div><div><br class="webkit-block-placeholder">
</div><div>Mike</div><div><br></div></div>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician