<div dir="ltr">Hi David,<div><br></div><div>I will test this on my end also but some times an OS version update will introduce &quot;ghost&quot; HID&#39;s, especially keyboards or trackpads, that can be opened but do not generate data. This has happened a few times before. The way to check is to change the kbNum and see if using a different number (1, 2, 3, etc.) produce data. You only need to try this until you see &quot;couldn&#39;t open keyboard #&quot; for whichever number after 0, which means you&#39;ve exhausted the list of things ChucK thinks is a keyboard. </div><div><br></div><div>Otherwise this could be a new issue specific to El Capitan :(</div><div><br></div><div>spencer</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 11:16 AM, David Loberg Code <span dir="ltr">&lt;<a href="mailto:d.loberg.code@wmich.edu" target="_blank">d.loberg.code@wmich.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I have a student with a MacBook Pro (Retina, 13&quot;, early-2015). She was on Yosemite with latest ChucK build; now on El Capitan with the ChucK beta build (1.3.5.2 beta).  The same problem happened in both builds.</div><div><br></div><div>She can open the keyboard with Hid. It will successfully pull the <a href="http://kb.name" target="_blank">kb.name</a> and print it.</div><div>However, it won’t detect any other activity from the keyboard.</div><div>It gets stopped at kb=&gt;now; and won’t go any further. We have tried an external USB keyboard too, and it produces the same problem.</div><div><br></div><div>Anyone else have this happen OR have a cure?</div><div><br></div><div>thanks,</div><div><br></div><div>davd</div><div><br></div><div><div>David Loberg Code</div><div>Western Michigan University</div><div><a href="mailto:code@wmich.edu" target="_blank">code@wmich.edu</a></div></div><div><br></div><div><br></div><div><br></div><div><div style="margin:0px;font-family:Monaco"><span style="color:#94132e">Hid</span> kb;</div><div style="margin:0px;font-family:Monaco"><span style="color:#94132e">HidMsg</span> kbMsg;</div><div style="margin:0px;font-family:Monaco"><span style="color:#de9210">0</span> =&gt; <span style="color:#0433ff">int</span> kbNum;</div><div style="margin:0px;font-family:Monaco">kb.openKeyboard( kbNum ) =&gt; <span style="color:#0433ff">int</span> kbAvailable;</div><div style="margin:0px;font-family:Monaco"><span style="color:#0433ff">if</span> ( kbAvailable == <span style="color:#de9210">0</span> ) <span style="color:#0433ff">me</span>.exit();</div><div style="margin:0px;font-family:Monaco">&lt;&lt;&lt; <span style="color:#515151">&quot;keyboard &#39;&quot;</span>, <a href="http://kb.name" target="_blank">kb.name</a>(), <span style="color:#515151">&quot;&#39; ready&quot;</span> &gt;&gt;&gt;;</div><div style="margin:0px;font-family:Monaco;min-height:17px"><br></div><div style="margin:0px;font-family:Monaco;color:rgb(4,51,255)">while<span style="color:#000000"> (</span>true<span style="color:#000000">) {</span></div><div style="margin:0px;font-family:Monaco;color:rgb(114,158,18)"><span style="color:#000000">    </span>// hangs up waiting for kb=&gt;now event</div><div style="margin:0px;font-family:Monaco">    kb =&gt; <span style="color:#0433ff">now</span>;</div><div style="margin:0px;font-family:Monaco">    <span style="color:#0433ff">while</span>(kb.recv(kbMsg))  {</div><div style="margin:0px;font-family:Monaco">        <span style="color:#0433ff">if</span> (kbMsg.isButtonDown()) {</div><div style="margin:0px;font-family:Monaco">            kbMsg.key =&gt; <span style="color:#0433ff">int</span> keyNum;</div><div style="margin:0px;font-family:Monaco">            &lt;&lt;&lt; <span style="color:#515151">&quot;#&quot;</span>, keyNum &gt;&gt;&gt;;</div><div style="margin:0px;font-family:Monaco;color:rgb(114,158,18)"><span style="color:#000000">        } </span>//end button down       </div><div style="margin:0px;font-family:Monaco;color:rgb(114,158,18)"><span style="color:#000000">   } </span>// end while hid.recv</div><div style="margin:0px;font-family:Monaco;color:rgb(114,158,18)"><span style="color:#000000">} </span>// end while(true)</div></div><div><br></div><div><br></div><div> </div><br><div>
<div><br></div><br>

</div>
<br></div><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" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div>Spencer Salazar<br></div><div>Doctoral Candidate</div><div>Center for Computer Research in Music and Acoustics</div><div>Stanford University</div><div><br></div><div><a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a></div><div></div><div>+1 831.277.4654<br></div><div><a href="https://ccrma.stanford.edu/~spencer/" style="color:rgb(17,85,204)" target="_blank">https://ccrma.stanford.edu/~spencer/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
</div>