From: Charles D. <cd...@mv...> - 2001-06-19 23:07:23
|
On Tue, Jun 19, 2001 at 03:48:01PM -0700, James Simmons wrote: > > Maybe it should be a separate module providing a whole class of > > event mix devices, with all EV_KEY and EV_REL mixed on > > /dev/eventmix0 by default. Then there could be ioctl's to attach > > and detach single event devices onto the mixer devices. >=20 > The real underlying problem is knowing when a device gets attached > and detached. How do we know that? It is not easy to solve. A mixer > sort of gets around this problem. Then we run into the problem of > EV_ABS type devices. The mixer device could be used to tell us when > a new device is added or subtracted. Then we can decided to add the > new device to the mixer.=20 If some changes were made to the data structure, it should be possible to provide attach/detach notices through the mixer, as well as informing applications of which device an event came from. I'll try writing a mixer device which does this some time between now and this weekend, inclusive. |