In playing with [hid] a bit more, it appears that you can have it track when multiple keys are down. Just as a test, I pressed and held down keys, and once I get to the sixth key, no matter what key I pressed it would output &#39;key_1 1&#39; for that key, and any subsequent keys that are pressed are not registered.<div>
<br class="webkit-block-placeholder"></div><div>Is the number of multiple keys restricted by [hid] or the system? Is &#39;key_1 1&#39; an indicator that no more keys can be pressed?</div><div><br class="webkit-block-placeholder">
</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div><br class="webkit-block-placeholder"></div><div>Mike</div><div><br><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 2:50 PM, Mike McGonagle &lt;<a href="mailto:mjmogo@gmail.com">mjmogo@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="Ih2E3d">On Thu, Mar 20, 2008 at 2:37 PM, Andrew Turley &lt;<a href="mailto:aturley@acm.org" target="_blank">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></div></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></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>
</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>
</div><div><br></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></div><div>Strange.</div><div class="Ih2E3d"><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></div></div><div>Yup, got this to work, and am looking forward to testing it out on my laptop at home tonight...</div><div><br>
</div><div>Mike</div><div><br></div></div><div><div></div><div class="Wj3C7c">-- <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
</div></div></blockquote></div><br><br clear="all"><br>-- <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
</div>