From 0564c8d123e0966fdd2b4989783c62bca35988d2 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 4 May 2009 16:06:06 +0000 Subject: Add detect_devices::hasTouchpad() function --- perl-install/detect_devices.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index dce726063..4bc2a0928 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -1143,6 +1143,8 @@ sub matching_types() { } sub hasWacom() { find { $_->{vendor} == 0x056a || $_->{driver} =~ /wacom/ } usb_probe() } +sub hasTouchpad() { any { $_->{Synaptics} || $_->{ALPS} || $_->{Elantech} } getInputDevices() }; + sub usbWacom() { grep { $_->{vendor} eq '056a' } getInputDevices() } sub usbKeyboards() { grep { $_->{media_type} =~ /\|Keyboard/ } usb_probe() } sub usbStorage() { grep { $_->{media_type} =~ /Mass Storage\|/ } usb_probe() } -- cgit v1.2.1