@@ -68,6 +68,11 @@ Rectangle {
68 deviceFilter: InputInfo.Mouse
68 deviceFilter: InputInfo.Mouse
73+ deviceFilter: InputInfo.TouchPad
71 InputDeviceModel {
76 InputDeviceModel {
72 id: keyboardsModel
77 id: keyboardsModel
73 deviceFilter: InputInfo.Keyboard
78 deviceFilter: InputInfo.Keyboard
@@ -183,7 +188,7 @@ Rectangle {
183 nativeWidth: root.width
188 nativeWidth: root.width
184 nativeHeight: root.height
189 nativeHeight: root.height
185 mode: applicationArguments.mode
190 mode: applicationArguments.mode
186− hasMouse: miceModel.count > deviceConfiguration.ignoredMice
191+ hasMouse: miceModel.count + touchPadModel.count > deviceConfiguration.ignoredMice
188 // TODO: Factor in the connected input devices (eg: physical keyboard, mouse, touchscreen),
193 // TODO: Factor in the connected input devices (eg: physical keyboard, mouse, touchscreen),
189 // what's the output device (eg: big TV, desktop monitor, phone display), etc.
194 // what's the output device (eg: big TV, desktop monitor, phone display), etc.
@@ -197,7 +202,7 @@ Rectangle {
197 return "tablet";
202 return "tablet";
199 } else { // automatic
204 } else { // automatic
200− if (miceModel.count > deviceConfiguration.ignoredMice) {
205+ if (miceModel.count + touchPadModel.count > deviceConfiguration.ignoredMice) {
201 return "desktop";
206 return "desktop";
203 return deviceConfiguration.category;
208 return deviceConfiguration.category;