[Interest] Input devices auto detection

Константин Уткин kostaui at mail.ru
Fri Jul 25 12:23:23 CEST 2014


Fri, 25 Jul 2014 09:33:55 +0000 от Agocs Laszlo <Laszlo.Agocs at digia.com>:
> If Qt was configured with libudev support then mice and keyboards will be recognized even when
> connected after starting the application.

> If the libudev headers and libs were not present at configure time then hotplugging will not work. 
> Mice & keyboards will still be picked up automatically (using fallback method 
> based on a simple walkthrough of /dev/input/event*), but this is done only once, on application startup.

> The fact that you need to explicitly specify the device nodes is somewhat weird. A normal keyboard 
> or mouse should be picked up automatically, regardless of having or not having libudev support.


Fri, 25 Jul 2014 09:33:42 +0000 от Al-Khanji Louai <Louai.Al-Khanji at digia.com>:
> If you compile Qt with udev support and do not specify any devices it should automatically find new devices. See qevdevmousemanager.cpp.


Thank you for mentioning udev! I'm not using it now, so looks like I should rebuild my Qt libs.

Best regards, Konstantin


More information about the Interest mailing list