summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/mouse.pm3
2 files changed, 4 insertions, 0 deletions
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} };