diff options
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r-- | perl-install/mouse.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 9009d811d..1d47d1bb2 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -170,11 +170,16 @@ sub fullname2mouse { my ($fname, %opts) = @_; my ($type, @l) = split '\|', $fname; my ($name) = pop @l; + search: $opts{device} ||= $mice{$type}[0][0]; foreach (@{$mice{$type}[1]}) { my $l = raw2mouse($type, $_); $name eq $l->{name} and return { %$l, %opts }; } + if ($name eq '1 Button') { + $name = "Generic 2 Button Mouse"; + goto search; + } die "$fname not found ($type, $name)"; } |