summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-18 21:28:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-18 21:28:04 +0200
commitcd8c47dc628016d470268bbed3c29461ffed296d (patch)
treeb26d9c26657f68fc50d58dc277f37a8f617f57ed /ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp
parent15df1de681021950e46a9321c2606c2ea4b63afc (diff)
evdev: don't filter out non-joysticks
Diffstat (limited to 'ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp')
-rw-r--r--ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp b/ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp
index 267101be..e0126283 100644
--- a/ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp
+++ b/ftnoir_tracker_libevdev/ftnoir_tracker_libevdev_dialog.cpp
@@ -13,15 +13,9 @@ TrackerControls::TrackerControls()
ui.comboBox->clear();
QDir dir("/dev/input/by-id");
- auto devices = dir.entryList(QStringList { "usb-?*-event-joystick"});
+ auto devices = dir.entryList(QStringList { "usb-?*-event-?*"});
for (QString dev : devices)
- {
- dev.replace(QRegularExpression("^usb-"), "");
- dev.replace(QRegularExpression("-event-.[^-]*"), "");
- dev.replace("_", " ");
ui.comboBox->addItem(dev);
- }
-
tie_setting(s.device_name, ui.comboBox);
}