Reputation: 645
Is it possible to check if a keyboard and a mouse are connected to the system with Qt or any other C++ alternative? in windows
Upvotes: 8
Views: 1710
Reputation: 1846
I think Qt in embedded Linux can detect the plug and unplug of an USB Mouse and enable it when USB mouse is plugged in.
you can refer following links http://qt-project.org/doc/qt-4.8/qkbddriverplugin.html#details
http://qt-project.org/doc/qt-4.8/qmousedriverplugin.html#details
http://qt-project.org/doc/qt-4.8/qwsmousehandler.html
Upvotes: 3