Latest Galileo release propogates Linux input events directly into the Arduino USBHost layer.
The USBHost layer expects keys to be converted to ASCII - which at this release the USBHost Class API is not doing.
So you get they keyboard number consistent with the Linux input subsystem - not the ASCII representation that Arduino sketches expect.
I use a C script(evtest.c) compiled on the Galileo board to read the events and record it into a text file. Then with an Arduino Script I read the text file. It works but it is far from ideal and I'm trying to include this C script into the sketch.
You can find evtest.c with Google, but if you want I can send you my version by PM.
I have tested it with a keyboard and mouses so far.
Hi Oliver. Your workaround intrigued me and might be what I'm after! Based on some sort of resistance test I'm trying to send a signal back from my Galileo to my mac to tell it to press a key on the keyboard - eg at below a certain level press 'K', at another level press 'L'
I'm struggling as with Arduino there's the Keyboard command but that doesn't work on the Galileo. Any ideas? thanks so much Oliverleure