<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Spencer and Bob,</div><div>&nbsp; The problem is not exclusively an El Capitan issue. It was already happening in Yosemite before she upgraded.</div><div>&nbsp; We have tried other device numbers. If it is a correct device number, it will open the keyboard but not receive data. If it is an incorrect device number, it gives the 'couldn’t open' response. &nbsp;(As I indicated, we also tried connecting an external USB keyboard.)</div><div><br></div><div>davd</div><div><br></div><div><br></div><div><div style="margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Fra:&nbsp;</b></span><span style="font-family: Helvetica;">Bob Bob &lt;<a href="mailto:estecorreoesdebobi@gmail.com">estecorreoesdebobi@gmail.com</a>&gt;<br></span></div><div style="margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Emne:&nbsp;</b></span><span style="font-family: Helvetica;"><b>Re: [chuck-users] keyboard fail</b><br></span></div><div style="margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Dato:&nbsp;</b></span><span style="font-family: Helvetica;">31. oktober 2015 01:10:39 GMT-4<br></span></div><div style="margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Til:&nbsp;</b></span><span style="font-family: Helvetica;">ChucK Users Mailing List &lt;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>&gt;<br></span></div><div style="margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Svar til:&nbsp;</b></span><span style="font-family: Helvetica;">ChucK Users Mailing List &lt;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>&gt;<br></span></div><br><br><div dir="ltr"><div>I've hesitated to update to el capitan because a lot of people have been having issues.<br></div>I also have the latest MacBook pro but 15" and everything works so far.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-28 19:06 GMT-06:00 Spencer Salazar&nbsp;<span dir="ltr">&lt;<a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><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 "ghost" HID'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 "couldn't open keyboard #" for whichever number after 0, which means you've exhausted the list of things ChucK thinks is a keyboard.&nbsp;</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"><div><div class="h5">On Wed, Oct 28, 2015 at 11:16 AM, David Loberg Code&nbsp;<span dir="ltr">&lt;<a href="mailto:d.loberg.code@wmich.edu" target="_blank">d.loberg.code@wmich.edu</a>&gt;</span>&nbsp;wrote:<br></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div class="h5"><div style="word-wrap: break-word;"><div>I have a student with a MacBook Pro (Retina, 13", early-2015). She was on Yosemite with latest ChucK build; now on El Capitan with the ChucK beta build (1.3.5.2 beta).&nbsp; The same problem happened in both builds.</div><div><br></div><div>She can open the keyboard with Hid. It will successfully pull the&nbsp;<a href="http://kb.name" target="_blank">kb.name</a>&nbsp;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: rgb(148, 19, 46);">Hid</span>&nbsp;kb;</div><div style="margin: 0px; font-family: Monaco;"><span style="color: rgb(148, 19, 46);">HidMsg</span>&nbsp;kbMsg;</div><div style="margin: 0px; font-family: Monaco;"><span style="color: rgb(222, 146, 16);">0</span>&nbsp;=&gt;&nbsp;<span style="color: rgb(4, 51, 255);">int</span>&nbsp;kbNum;</div><div style="margin: 0px; font-family: Monaco;">kb.openKeyboard( kbNum ) =&gt;&nbsp;<span style="color: rgb(4, 51, 255);">int</span>&nbsp;kbAvailable;</div><div style="margin: 0px; font-family: Monaco;"><span style="color: rgb(4, 51, 255);">if</span>&nbsp;( kbAvailable ==&nbsp;<span style="color: rgb(222, 146, 16);">0</span>&nbsp;)&nbsp;<span style="color: rgb(4, 51, 255);">me</span>.exit();</div><div style="margin: 0px; font-family: Monaco;">&lt;&lt;&lt;&nbsp;<span style="color: rgb(81, 81, 81);">"keyboard '"</span>,&nbsp;<a href="http://kb.name" target="_blank">kb.name</a>(),&nbsp;<span style="color: rgb(81, 81, 81);">"' ready"</span>&nbsp;&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: rgb(0, 0, 0);">&nbsp;(</span>true<span style="color: rgb(0, 0, 0);">) {</span></div><div style="margin: 0px; font-family: Monaco; color: rgb(114, 158, 18);"><span style="color: rgb(0, 0, 0);">&nbsp; &nbsp;&nbsp;</span>// hangs up waiting for kb=&gt;now event</div><div style="margin: 0px; font-family: Monaco;">&nbsp; &nbsp; kb =&gt;&nbsp;<span style="color: rgb(4, 51, 255);">now</span>;</div><div style="margin: 0px; font-family: Monaco;">&nbsp; &nbsp;&nbsp;<span style="color: rgb(4, 51, 255);">while</span>(kb.recv(kbMsg))&nbsp; {</div><div style="margin: 0px; font-family: Monaco;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(4, 51, 255);">if</span>&nbsp;(kbMsg.isButtonDown()) {</div><div style="margin: 0px; font-family: Monaco;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kbMsg.key =&gt;&nbsp;<span style="color: rgb(4, 51, 255);">int</span>&nbsp;keyNum;</div><div style="margin: 0px; font-family: Monaco;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt;&lt;&nbsp;<span style="color: rgb(81, 81, 81);">"#"</span>, keyNum &gt;&gt;&gt;;</div><div style="margin: 0px; font-family: Monaco; color: rgb(114, 158, 18);"><span style="color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;</span>//end button down&nbsp; &nbsp; &nbsp; &nbsp;</div><div style="margin: 0px; font-family: Monaco; color: rgb(114, 158, 18);"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp; }&nbsp;</span>// end while hid.recv</div><div style="margin: 0px; font-family: Monaco; color: rgb(114, 158, 18);"><span style="color: rgb(0, 0, 0);">}&nbsp;</span>// end while(true)</div></div><div><br></div></div></div></blockquote></div></div></blockquote></div></div></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Consolas; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">davd<br><br>David Loberg Code<br>School of Music<br>Western Michigan University<br>1903 W Michigan Ave<br>Kalamazoo, MI 49008-5434<br><a href="mailto:code@wmich.edu">code@wmich.edu</a><br><br><br><br><br><br></div>

</div>
<br></body></html>