From 642f17edcc82e5aa76216d4eafbb6d5c543ceb96 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 19 Sep 2007 13:43:42 +0000 Subject: - for evdev configured mice, specify bustype (useful for "Macintosh mouse button emulation" which has same vendor/product as "AT Translated Set 2 keyboard") (need drakxtools-backend 10.4.203) --- lib/Xconfig/xfree.pm | 4 ++-- lib/mouse.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index 5c3f5bc..c6b3e28 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -136,8 +136,8 @@ sub _new_keyboard_section { # mouse ######################################################################## ################################################################################ #- example mouse: { Protocol => 'IMPS/2', Device => '/dev/psaux', Emulate3Buttons => undef, Emulate3Timeout => 50, ZAxisMapping => [ '4 5', '6 7' ] } -#- example evdev: { vendor => '0x045e', product => '0x008c' } -my @mouse_fields = qw(Protocol Device ZAxisMapping Emulate3Buttons Emulate3Timeout vendor product); #-); +#- example evdev: { bustype => '0x0003', vendor => '0x045e', product => '0x008c' } +my @mouse_fields = qw(Protocol Device ZAxisMapping Emulate3Buttons Emulate3Timeout bustype vendor product); #-); sub get_mice { my ($raw_X) = @_; my @raw_mice = $raw_X->get_Sections('InputDevice', \&_is_mouse); diff --git a/lib/mouse.pm b/lib/mouse.pm index f57ddad..0eef408 100644 --- a/lib/mouse.pm +++ b/lib/mouse.pm @@ -289,7 +289,7 @@ sub mice2evdev { #- we always use HWheelRelativeAxisButtons for evdev, it tells mice with no horizontal wheel to skip those buttons #- that way we ensure 6 & 7 is always horizontal wheel #- (cf patch skip-HWheelRelativeAxisButtons-even-if-unused in x11-driver-input-evdev) - { vendor => "0x$_->{vendor}", product => "0x$_->{id}", HWheelRelativeAxisButtons => "7 6" }; + { bustype => "0x$_->{bustype}", vendor => "0x$_->{vendor}", product => "0x$_->{id}", HWheelRelativeAxisButtons => "7 6" }; } @mice ] } -- cgit v1.2.1