[Interest] Input devices auto detection

Konrad Rosenbaum konrad at silmor.de
Fri Jul 25 10:56:32 CEST 2014


On Friday 25 July 2014 06:21:06 Константин Уткин wrote:
> I can plug any usb input devices and use them in my Qt apps only when I
> know exact device name. For example, I can call app: 
> > . /myapp  -plugin EvdevMouse:/dev/input/event3
> > EvdevKeyboard:/dev/input/event6
> But if need to launch app first, then plug  USB  devices in, I have no
> chances to use these devices. So is there any way to solve a problem (in
> case of  EGLFS) ?

At least for mouse you can use /dev/input/mice, which gives you the events 
of _all_ mice.

I'm not sure how to solve this for keyboards, since I've never used Qt 
embedded.


	Konrad



More information about the Interest mailing list