From: pete@q106fm.uucp (pete cervasio)
Newsgroups: comp.os.linux
Subject: MS Mouse detection code...
Date: Sat, 26 Sep 92 15:12:02 CDT
Organization: WKBQ-FM Engineering Department

Hi, Linuxers... Sorry these took so long to get done, but we've been
getting ready to go through a change of ownership at work.  What a
posterior-based pain that is turning into!  (Any radio people out there
will understand...)

Anyway, here are the changes to busmouse.c and busmouse.h that do some
proper detection routines for Microsoft mice.  All I can say is that
they work here.  Your mileage may vary.  No warranties expressed or
implied.  Close cover before striking.  Product supplied by weight -
contents may have settled during shipping.

Note:  I haven't had time to upgrade to pl5 or pl6... I don't think
there were any changes to these two files in either of those patches,
though, so this should work just fine.

1.  cut out the .uue file below
2.  uudecode it to mouse.diff.Z
3.  uncompress mouse.diff
4.  (cd /src; patch -p0 < mouse.diff)
 or (cd /src/linux; patch -p1 < mouse.diff)
5.  compile and enjoy

Okay, here's the file:

---8<------8<------8<--- CUT HERE ---8<------8<------8<---
begin 644 mouse.diff.Z
M'YV0*@*"8)/&31T\+MZP(?-B31DY;LJP>3$&C9PO9.38>2&FSIPV;SR6<3$F
MP90Z;D!,*0,'1(P9+FGHD'%#!XT;+G/DD*&@A<^!!0\V?!AQ8L6+&3=V_!AR
MSLB24\+04<D2A`P;,77`D`FC1LZ="@**'4M615B!,V*PF(%SK`(0<%7`G4L7
M;A`R9,J0`1$&Q)B0<-B4`?'&#(B(=T"803F&3IHW;N:`H/,&!)HP;L@(!D$F
MC1DS#\NX&5-&<D$0'@N>>1NWKFNX3::`L#/'!0@F;\ZDH5.F(@@4=]"$GBP<
M1,&I=L+(21-&S.8[8>:X.3$U#!PX<MY@9\X[A0O6(,R&:&WGX9S'*6&XX#E7
MQ0O6K$<4',.F3MX$/`@:Q#,4HD07:/C0TT]IL4"##"#XY!-X<KTVUUUY[=77
M7W4$-EAAAY61V&*C.0:99)19AIEF@W7V66BCE69<2JFYL5I[#M85VVRUW9;;
M;KVA\5MPP]%1W'&S*<><<X-!)QUU?%V7W792E>$=@PJ,%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YCG$A5R$"[;<0,=UH`"$3BA,IC2U!LX98:I
M1.MIWY,4;\C@`BZX000$_*2TF@*U-3E%E"#D(UW$%K&RR0QM?+1DT_0'-*$1
MS6A((R#3&/8T%T3MEU0[I%B`LI^$+.0%];)/&5Z0+_XLI9IH,`E*J-*2EV1E
M!C/0"@V^PA.LE1.<@A(G.8-B3H^@TR3"6DE+KN*2&&@%!CJ8`8)BH!.>!`Q@
M`P.!#6#``AM@96$@>($*%,31GS0A"4.0PA.F8#0J@$`(59A"$YZ0TB*`(`E4
M*,*,.DI3G[C'8V^+VZT2P$R["2\(;TR>'UWC/!G,@`QY@EL9Y!81GJH1:&P\
M(@`%2(6AUJ6H1XV/3IO:TR$\86@B94)0J^H@K(Y!JTO=:5>_:H3?C;6/6#4#
M?+`VT8IBA:.LT6A-/0I2D9+4""9%J4I92J>7QG2F>^7H3><%%Z4R]5X])<)/
MWUI6/!@5J>-QK%J?RC\C_B^)0JVL41G9V*U"EK->!>L3Q$I5J]+%K&A]K%-]
,MK_4MO4(;TU`7.$#
`
end
---8<------8<------8<--- CUT HERE ---8<------8<------8<---

Love Ya!
Pete C.

+----------------------------------------------------------------------+
| Pete Cervasio                | pete%q106fm.uucp@wupost.wustl.edu     |
| I fish, therefore I am.      | pete.cervasio@f1.n2250.z1.fidonet.org |
+----------------------------------------------------------------------+
|  If you think of C as a preprocessor for your assembler, it makes    |
|                   just as little sense as before.   (me)             |
+----------------------------------------------------------------------+