Bryan, I have been working on something similar to this. In order to make it work I actually had to add a second device using the same driver. The second device would use a pair of pipes to communicate with userland. This unfortunate mess is required to get the X server to call the module whenever input arrives from two different source (the device itself and userland) as I could find no way for a single device to be called for multiple input sources. I am still developing this one as it is having some nasty problems at the moment (mostly my unfamiliarity with X internals ;-).
I don't think this is something that belongs in main stream XFree86 as it is quite a hack. It is however, a necessary evil for those that need userland access of an input device for on the fly configuration, etc. Take care, KJohn > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Bryan W. Headley > Sent: Saturday, April 05, 2003 6:52 PM > To: [EMAIL PROTECTED] > Subject: Userland - X driver message passing API > > > Hey, > > Is anyone aware of a project to allow a userland tool, such as a > front-end GUI, communicate with an X input driver? > > This is what I want to do, and yeah, there is a bit of overlap > Zephaniah Hull's evdev: there are several parameters to my Aiptek tablet > driver which should be modifiable once X is running. Among those are > active area settings, mouse/stylus button transposal settings and the > like. I'd like for it to be bidirectional, insofar as it needs to report > it's settings as well as configure itself. > > To do this properly entails implementing a callback method in the > drivers (e.g., it's not for input events but rather for configuration), > and something at a higher level that listens to a socket, named pipe, > jms, smtp, m-o-u-s-e and can route/dispatch messages to the appropriate > driver. > > Where evdev comes in (I think) is that it establishes a channel of > communications to pass along hardware insertion/removal events generated > by hotplug. So there's some infrastructure there already: the question > is whether leveraging off of that is a good way to go... > > Any "guilty heads" out there? > > > -- > ____ .:. ____ > Bryan W. Headley - [EMAIL PROTECTED] > > _______________________________________________ > Devel mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/devel _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
