QWS_MOUSE_PROTO=Auto:/dev/input/mice
The above works great. I can have a touch screen at /dev/input/mouse0 and plug in a USB mouse detected as /dev/input/mouse1 and all events are received on /dev/input/mice. It works no matter what order I connected the USB mouse devices. I can add a new mouse and the running Qt app will work with the new mouse.
Keyboards on the other hand are much more difficult to work with. I have to specify an event#. In the example below /dev/input/event2.
QWS_KEYBOARD="USB:/dev/input/event2"
If I plug a mouse in before the keyboard the event numbering changes. For example, the mouse might takes /dev/input/event2 and the keyboard becomes /dev/input/event3 which breaks the QWS_KEYBOARD assignment.
IS there a solution so that USB keyboards can plug & play as well as USB mice? Is there a keyboard equivalent of "/dev/input/keyboards" that works the same way as /dev/input/mice?
Thanks in advance,
-Ed
Target : non-X11 Linux 2.6.37 Arago
Bookmarks