From 457c145ea1446357a318c541cee692e934461d63 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 20 Mar 2009 14:34:48 +0000 Subject: (detect) configure input driver as 'vmmouse' if running in vmware (#29106) (needs drakxtools >= 12.17) --- NEWS | 1 + lib/mouse.pm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index e65f082..f9860e7 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - mousedrake: + o configure input driver as 'vmmouse' if running in vmware (#29106) o test if the file is there before trying to install the packages, that saves a rpm -q in harddrake service after adding/removing/changing a mouse diff --git a/lib/mouse.pm b/lib/mouse.pm index 1ff3068..cc530e9 100644 --- a/lib/mouse.pm +++ b/lib/mouse.pm @@ -86,6 +86,7 @@ sub all_mice() { [ 7, 'ps/2', 'ExplorerPS/2', N_("Force evdev") ], #- evdev is magically handled in mouse::select() if_(detect_devices::is_xbox(), [ 5, 'ps/2', 'IMPS/2', N_("Microsoft Xbox Controller S") ]), if_(detect_devices::is_virtualbox(), [ 7, 'ps/2', 'vboxmouse', N_("VirtualBox mouse") ]), + if_(detect_devices::is_vmware(), [ 7, 'ps/2', 'vmmouse', N_("VMware mouse") ]), ] ], N_("none") => @@ -345,6 +346,8 @@ sub detect { $modules_conf->get_probeall("usb-interface") and eval { modules::load('usbhid') }; if (detect_devices::is_virtualbox()) { fullname2mouse("Universal|VirtualBox mouse"); + } elsif (detect_devices::is_vmware()) { + fullname2mouse("Universal|VMware mouse"); } elsif (my @mice = grep { $_->{Handlers}{mouse} } detect_devices::getInputDevices_and_usb()) { my @synaptics = map { { ALPS => $_->{ALPS} }; -- cgit v1.2.1