summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaulo Ricardo Zanoni <pzanoni@mandriva.com>2010-04-13 13:48:09 +0000
committerPaulo Ricardo Zanoni <pzanoni@mandriva.com>2010-04-13 13:48:09 +0000
commitd578193d09d63b455475bad318cb92bdbc1b9ccf (patch)
tree4569ee720098a8c847c20bd5b958167c2e19d20d /lib
parent3dff56dd49288a31010cae52f44fee18613d8621 (diff)
downloaddrakx-kbd-mouse-x11-d578193d09d63b455475bad318cb92bdbc1b9ccf.tar
drakx-kbd-mouse-x11-d578193d09d63b455475bad318cb92bdbc1b9ccf.tar.gz
drakx-kbd-mouse-x11-d578193d09d63b455475bad318cb92bdbc1b9ccf.tar.bz2
drakx-kbd-mouse-x11-d578193d09d63b455475bad318cb92bdbc1b9ccf.tar.xz
drakx-kbd-mouse-x11-d578193d09d63b455475bad318cb92bdbc1b9ccf.zip
Remove imwheel support
Diffstat (limited to 'lib')
-rw-r--r--lib/mouse.pm18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/mouse.pm b/lib/mouse.pm
index 10e1fae..0d32b83 100644
--- a/lib/mouse.pm
+++ b/lib/mouse.pm
@@ -252,31 +252,23 @@ sub _mice2evdev {
sub _detect_evdev_mice {
my (@mice) = @_;
- my $imwheel;
foreach (@mice) {
my @l = $_->{usb} && $_->{usb}{driver} =~ /^Mouse:(.*)/ ? split('\|', $1) : ();
foreach my $opt (@l) {
if ($opt eq 'evdev') {
$_->{want_evdev} = 1;
- } elsif ($opt =~ /imwheel:(.*)/) {
- $imwheel = $1;
}
}
if ($_->{HWHEEL}) {
$_->{want_evdev} = 1;
}
- if ($_->{SIDE}) {
- $imwheel ||= 'generic';
- }
}
my @evdev_mice = grep { $_->{want_evdev} } @mice;
- log::l("configuring mice with imwheel for thumb buttons (imwheel=$imwheel)") if $imwheel;
log::l("configuring mice for evdev (" . join(' ', map { "$_->{vendor}:$_->{product}" } @evdev_mice) . ")") if @evdev_mice;
- { imwheel => $imwheel,
- evdev_mice_all => _mice2evdev(@mice),
+ { evdev_mice_all => _mice2evdev(@mice),
if_(@evdev_mice, evdev_mice => _mice2evdev(@evdev_mice)) };
}
@@ -392,19 +384,11 @@ sub various_xfree_conf {
if_($mouse->{synaptics}, ['x11-driver-input-synaptics', "$inputdrvpath/synaptics_drv.so"]),
if_($mouse->{evdev_mice}, ['x11-driver-input-evdev', "$inputdrvpath/evdev_drv.so"]),
if_($mouse->{Protocol} eq 'vboxmouse', ['x11-driver-input-vboxmouse', "$inputdrvpath/vboxmouse_drv.so"]),
- if_($mouse->{imwheel}, ['imwheel', "/usr/bin/imwheel"]),
if_(@{$mouse->{wacom}}, ['x11-driver-input-wacom', "$inputdrvpath/wacom_drv.so"]),
if_($mouse->{name} =~ /VMware/i, ['x11-driver-input-vmmouse', "$inputdrvpath/vmmouse_drv.so"]),
];
$do_pkgs->ensure_files_are_installed($pkgs, 1);
- if ($mouse->{imwheel}) {
- my $rc = "/etc/X11/imwheel/imwheelrc.$mouse->{imwheel}";
- eval { setVarsInSh("$::prefix/etc/X11/imwheel/startup.conf", {
- IMWHEEL_START => 1,
- IMWHEEL_PARAMS => join(' ', '-k', if_(-e "$::prefix$rc", '--rc', $rc)),
- }) };
- }
}
#- write_conf : write the mouse infos into the Xconfig files.