diff options
author | Francois Pons <fpons@mandriva.com> | 2001-03-23 16:46:13 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-03-23 16:46:13 +0000 |
commit | 49a30a0dab8208e578e7e1b74a8a7a38c89a261d (patch) | |
tree | f16a60338eab52349655b2852bc79077560067e2 /perl-install/Xconfig.pm | |
parent | 55588554b612a7a951aa22165c7381e81f3ce4a0 (diff) | |
download | drakx-49a30a0dab8208e578e7e1b74a8a7a38c89a261d.tar drakx-49a30a0dab8208e578e7e1b74a8a7a38c89a261d.tar.gz drakx-49a30a0dab8208e578e7e1b74a8a7a38c89a261d.tar.bz2 drakx-49a30a0dab8208e578e7e1b74a8a7a38c89a261d.tar.xz drakx-49a30a0dab8208e578e7e1b74a8a7a38c89a261d.zip |
added multiple tablet support (wacom), moved usb probe for mouse and tablet
at the beginning.
Diffstat (limited to 'perl-install/Xconfig.pm')
-rw-r--r-- | perl-install/Xconfig.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm index 72590f212..c003340e9 100644 --- a/perl-install/Xconfig.pm +++ b/perl-install/Xconfig.pm @@ -60,7 +60,7 @@ sub getinfoFromXF86Config { if $c{driver} =~ /keyboard/i; @mouse{qw(XMOUSETYPE device chordmiddle nbuttons)} = @c{qw(XMOUSETYPE device chordmiddle nbuttons)} if $c{driver} =~ /mouse/i; - @wacom{qw(device)} = @c{qw(device)} + $wacom{$c{device}} = undef; if $c{driver} =~ /wacom/i; } } elsif (/^Section "Monitor"/ .. /^EndSection/) { @@ -100,7 +100,7 @@ sub getinfoFromXF86Config { $mouse{nbuttons} = 7 if m/^\s*ZAxisMapping\s.*7/; } elsif (/^Section "XInput"/ .. /^EndSection/) { if (/^\s*SubSection "Wacom/ .. /^\s*EndSubSection/) { - $wacom{device} ||= $1 if /^\s*Port\s+"\/dev\/(.*?)"/; + $wacom{$1} = undef if /^\s*Port\s+"\/dev\/(.*?)"/; } } elsif (/^Section "Monitor"/ .. /^EndSection/) { $monitor{type} ||= $1 if /^\s*Identifier\s+"(.*?)"/; @@ -157,7 +157,7 @@ sub getinfoFromXF86Config { #- try to merge with $o, the previous has been obtained by ddcxinfos. add2hash($o->{keyboard} ||= {}, \%keyboard); add2hash($o->{mouse} ||= {}, \%mouse); - $o->{wacom} ||= $wacom{device}; + @{$o->{wacom}} > 0 or $o->{wacom} = [ keys %wacom ]; add2hash($o->{monitor} ||= {}, \%monitor); $o; |