on xenial help sign in
add some debug prints for input device changes
commit8e1dbdf5add67c720f44dc2188e845610b646e83 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 1 Dec 2015, 13:25 (11 years ago) parent1bc8eaf
1 file changed+3
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+3
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+3
@@ -193,6 +193,8 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
193193 }
194194 }
195195
196+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
197+
196198 return inputDevice;
197199}
198200
@@ -205,6 +207,7 @@ void QInputDeviceManagerPrivate::removeDevice(const QString &path)
205207 // this path is not a full evdev path
206208 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
207209 if (devicePath.contains(path)) {
210+ qDebug() << "Input device removed:" << deviceMap.value(devicePath)->name() << devicePath << deviceMap.value(devicePath)->type();
208211 deviceMap.remove(devicePath);
209212 Q_EMIT deviceRemoved(devicePath);
210213 }