|
Thanks a lot Julien,
I'm still trying to set up the keyboard events. I found
/dev/input/by-path/, which contains symlinks to /dev/input with
sensible names. I guess this is what you meant. One of them is
called "platform-i8042-serio-0-event-kbd", I assume that is the
keyboard. It links to /dev/input/event5, so I granted access
rights to the device to everyone and wrote the following little
script:
Hid hid;
HidMsg msg;
if(!hid.openKeyboard(5)) me.exit();
<<< hid.name(), "ready">>>;
while(true)
{
hid => now;
<<< "received event" >>>;
while(hid.recv(msg))
{
<<< msg.ascii, " was used" >>>;
}
}
The output of it is, surprisingly, "Sleep Button ready", and it
never comes to the point of "received event". Any ideas?
Best, Manuel
Am 06/12/13 09:57, schrieb Julien Saint-Martin:
Hi Manuel and Moisés,
Sorry for confusion I checked my code and I
use Hid event not KBHit.
I work on linux too (Debian). And I have to
modify a little my linux config to use KeyBoard
in Chuck.
On linux distrubutions I tried, Chuck didn't
receives Kb event by default. But fortunately
there is a work around.
I am not on my linux PC now so maybe the following
is not exactly right:
Go to directory /dev/input and find which event
corresponds to your keyboard (there is a directory
with links name of hid but I didn't remember the name)
. For me it is usually event0.
Then modify access rights to this event to give read
access to everyone.
After that your chuck may catch keyboard events.
Once ok, Chuck works great on linux and you can use
fantastic Jack server to connect it directly to other sound
tools. So I encourage you to don't give up with linux :-)
have fun,
Julien
_______________________________________________
chuck-users mailing list
[email protected]
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
|
_______________________________________________
chuck-users mailing list
[email protected]
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users