Trouble getting input from USB keyboard in a C++ program called from a SSH shell
Hi all,
I'm a newbie to this forum, so feel free to move my post if required.
I'm trying to write a C++ program that will run on an Arm-Linux platform with no GUI.
This application needs to read a stream from a USB keyboard.
I can obtain keycodes when I parse the /dev/input/event0 file, so the driver seems to work well.
I would use cin in a standard app, but the problem is that my application is called from an external console (SSH), so the only keyboard that I can read is the one from the calling machine. I cannot read the USB keyboard of the Arm-Linux platform.
Anybody has a clue?
Thanks, your help is really appreciated.
|