I want to connect two usb keypads to the same computer (Linux). Then I want to open 2 consoles #1 and #2 and execute one process on each one of them. Then I want to receive input from keypad #1 on console #1 and input from keypad #2 on console #2, that is, each keypad submits input to a specific process. How can this be achieved? Assume code is written in C. Thanks!
|
To have a program read input from a particular keyboard, you can make it read the raw events from the right input device. The input devices are (with a typical udev setup) You may want to fine-tune the udev rules that generate the names in |
|||
|
|
/dev/tty1and/dev/tty2? Or two terminals under X? Or do you only care to route the input to two processes, without caring whether it goes through terminals? – Gilles Nov 4 '11 at 23:25