diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-03-30 14:35:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-03-30 14:35:23 +0000 |
commit | 18011f2e9d699e37c6da8bec2d02de2b84a96a85 (patch) | |
tree | fdf782dfce0c929d31fe317a8b22c62518c19f56 /perl-install/mouse.pm | |
parent | ed9b8286889057ba6a4983d4afb266d74cac20f0 (diff) | |
download | drakx-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar drakx-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.gz drakx-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.bz2 drakx-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.xz drakx-18011f2e9d699e37c6da8bec2d02de2b84a96a85.zip |
no_comment
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r-- | perl-install/mouse.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 5bb5b5e8b..20509559c 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -93,7 +93,8 @@ sub read($) { sub write($;$) { my ($prefix, $mouse) = @_; local $mouse->{FULLNAME} = qq("$mouse->{FULLNAME}"); - setVarsInSh("$prefix/etc/sysconfig/mouse", $mouse, qw(MOUSETYPE XMOUSETYPE FULLNAME XEMU3 device)); + local $mouse->{WHEEL} = bool2yesno($mouse->{nbuttons} > 3); + setVarsInSh("$prefix/etc/sysconfig/mouse", $mouse, qw(MOUSETYPE XMOUSETYPE FULLNAME XEMU3 WHEEL device)); symlinkf $mouse->{device}, "$prefix/dev/mouse" or log::l("creating $prefix/dev/mouse symlink failed"); } |