Hi I'm trying to use something like the following with miniAudicle, but it doesn't work :-( Works great with chuck. Am I doing anything wrong? Is there otherways to grap keyboard input that works with miniAudicle? Thanks in advance for any response! KBHit kb; int key; while(true){ kb => now; while(kb.more()){ kb.getchar() => key; <<<key>>>; } } -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk
On 10/24/07, Atte André Jensen
Hi
I'm trying to use something like the following with miniAudicle, but it doesn't work :-( Works great with chuck. Am I doing anything wrong? Is there otherways to grap keyboard input that works with miniAudicle?
Yeah, try the Hid version; http://chuck.cs.princeton.edu/doc/examples/hid/kb.ck It's more powerful but the price is that it'll keep listening to the KB regardless of what app or window has the focus which may not be what you like. Yours, Kas..
Kassen wrote:
Yeah, try the Hid version; http://chuck.cs.princeton.edu/doc/examples/hid/kb.ck
It's more powerful but the price is that it'll keep listening to the KB regardless of what app or window has the focus which may not be what you like.
Thanks, that works. I might switch back to regular chuck for this particular project, so I'll look at both. -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk
Atte;
Thanks, that works. I might switch back to regular chuck for this particular project, so I'll look at both.
Yes, both have pros& cons. I sugested that we could perhaps have a system function that tells us wether ChucK/(mini)Audicle has the OS focus, precisely for quyestions like that. What you could do in the meantime is use some rarely used key or key combination to make your program start& stop responding to key presses? Yours, Kas.
Kassen wrote:
What you could do in the meantime is use some rarely used key or key combination to make your program start& stop responding to key presses?
That was exactly my plan :-) Thanks! -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk
participants (2)
-
Atte André Jensen
-
Kassen