<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Yes, we tried KBHit. That works fine.<br><span> </span><br>Still can't resolve the problem with using Hid.<br><span>As I said, it recognizes the keyboard device exists (i.e. will connect to it), but doesn't recognize that it is producing any data.</span><br><span> </span><br><em><strong style="font-family: Times; font-size: medium;">Perry Cook</strong><span style="font-family: Times; font-size: medium;"> </span><a href="mailto:chuck-users%40lists.cs.princeton.edu?Subject=Re:%20Re%3A%20%5Bchuck-users%5D%20kb%20hid%20problems&In-Reply-To=%3C4225CF19-09E5-4B55-B97B-34F310A8790D%40cs.princeton.edu%3E" title="[chuck-users] kb hid problems" style="font-family: Times; font-size: medium;">prc at CS.Princeton.EDU </a><br><span style="font-family: Times; font-size: medium;">Sun Nov 1 13:21:53 EST 2015</span><span style="font-family: Times; font-size: medium;"></span></em><p style="font-family: Times; font-size: medium;"></p><ul style="font-family: Times; font-size: medium;"><li><em>Next message: <a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2015-November/008030.html">[chuck-users] keyboard fail</a></em></li><li><em><strong>Messages sorted by:</strong> <a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2015-November/date.html#8029">[ date ]</a> <a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2015-November/thread.html#8029">[ thread ]</a> <a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2015-November/subject.html#8029">[ subject ]</a> <a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2015-November/author.html#8029">[ author ]</a></em></li></ul><hr style="font-family: Times; font-size: medium;"><pre style="white-space: pre-wrap;"><em>This is really odd, because I have two Yosemite machines that work
fine with your posted code. I’m trying to figure which of my Macs I
want to subject to the ElCap upgrade, and will test on that and report.
For fun, have you tried the other non-hid keyboard device example?
This one suffers from not working on Windows, but uses a non-hid
path without requiring device number, etc.
// computer keyboard input via terminal
KBHit kb;
// time-loop
while( true )
{
// wait on event
kb => now;
// loop through 1 or more keys
while( kb.more() )
{
// get and print key...
kb.getchar() => int c;
<<< "ascii:", c >>>;
}
}
</em></pre><br><br>davd<br><br>David Loberg Code<br>School of Music<br>Western Michigan University<br>Kalamazoo, MI 49008</body></html>