Re: non-i386 arch mice?
Hi,
<quote>
Detection is hmmm ... not easy. How will you detect ps/2 versus serial
mice
on i386?
Oh, *that* part is easy. If you can open /dev/psaux then there is a
ps/2 mouse. The kernel takes care of the device detection for you.
</quote>
Not so for m68k (haven't tried on Atari or Amiga, but definitely not on
Mac).
The kernel only detects the mouse interface and has no way of knowing if
there's
a mouse attached.
Anyway, it's pretty safe to assume that a Mac doesn't have an Amiga- or
Atari
mouse interface, and vice versa. And VMEbus machines don't have any mice.
So just read the first line from /proc/hardware to determine the subarch
and
go with that information for the busmouse device, and maybe probe the
serial
lines for serial mice.
Michael
Reply to: