[chuck-users] bug in HidMsg?

Atte André Jensen atte.jensen at gmail.com
Thu Nov 1 15:54:05 EDT 2007


Hi

I think something is not working correct in HidMsg. Running the 
following code and pressing "5" prints "34" but pressing "s" also prints 
"34" (this is with a danish keyboard, things might look different with 
other keyboards, I know). Shouldn't each key be associated with a unique 
int?


1 => int device;
Hid hi;
HidMsg msg;
if( !hi.openKeyboard( device ) ) me.exit();
<<< "keyboard '" + hi.name() + "' ready", "" >>>;
while(true){
     hi => now;
     while(hi.recv(msg)){
         <<<msg.key>>>;
     }
}
-- 
peace, love & harmony
Atte

http://atte.dk       | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk


More information about the chuck-users mailing list