On Wed, Jul 25, 2001 at 01:33:13PM -0700, James Simmons wrote:
> > Would anyone object if tsdev gained a mixer device? (I ask because
> > these have been a bit controversial elsewhere).
>=20
> I would rather have a generic mixer device. The only thing is you
> would need a special data struct to tell devices apart. It could get
> very mess for absolute devices otherwise. I would suggest for a
> device id the minor number of the /dev/input/eventX device.
Yup, that's a Very Good Thing to do -- but it leaves the immediate
issue here unsolved.
A number of apps already exist that use /dev/ts w/ the Compaq
touchscreen protocol. These apps try to open '/dev/ts' (a single
device) and use it for all input. Having a tsdev mixer device would
allow /dev/ts to be symlinked to this device, and all mice/touchpanels
would suddenly Just Work without any userland code changes.
Supporting these legacy apps was the original point of having tsdev in
the first place, but separating the tsdev devices reduces its
effectiveness in reaching that goal (as it ensures that any legacy app
can only feed from one device at a time). Thus, a mixer here would be
the Right Thing to do.
|