summaryrefslogtreecommitdiffstats
path: root/lib/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mouse.pm')
-rw-r--r--lib/mouse.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mouse.pm b/lib/mouse.pm
index 307a5b3..a7536a9 100644
--- a/lib/mouse.pm
+++ b/lib/mouse.pm
@@ -280,6 +280,10 @@ sub detect {
detect_devices::probe_category('input/tablet');
detect_devices::probe_category('input/touchscreen');
+ # evdev needs to be loaded before calling getInputDevices_and_usb
+ # else it will lead to a crash
+ eval { modules::load("evdev") };
+
my @wacom = _probe_usb_wacom_devices();
$modules_conf->get_probeall("usb-interface") and eval { modules::load('usbhid') };