on xenial help sign in
add some debug prints for input device changes
8e1dbdfMichael Zanetti
plugins/Unity/InputInfo/linux/qinputdeviceinfo_linux.cpp+3
@@ -193,6 +193,8 @@ QInputDevice *QInputDeviceManagerPrivate::addDevice(struct udev_device *udev)
193 }
193 }
194 }
194 }
195
195
196+ qDebug() << "Input device added:" << inputDevice->name() << inputDevice->devicePath() << inputDevice->type();
197+
196 return inputDevice;
198 return inputDevice;
197}
199}
198
200
@@ -205,6 +207,7 @@ void QInputDeviceManagerPrivate::removeDevice(const QString &path)
205 // this path is not a full evdev path
207 // this path is not a full evdev path
206 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
208 Q_FOREACH (const QString devicePath, deviceMap.keys()) {
207 if (devicePath.contains(path)) {
209 if (devicePath.contains(path)) {
210+ qDebug() << "Input device removed:" << deviceMap.value(devicePath)->name() << devicePath << deviceMap.value(devicePath)->type();
208 deviceMap.remove(devicePath);
211 deviceMap.remove(devicePath);
209 Q_EMIT deviceRemoved(devicePath);
212 Q_EMIT deviceRemoved(devicePath);
210 }
213 }