Thomas Zander wrote: !
I am looking for a way to do timers in the driver...
Saw this in acecad, #define milisleep(ms) xf86usleep(ms*1000)
To specify (in my case);is there a way to communicate with the driver from outside of X and set variables without restarting X ?
Yeah, there's a way. I'm a little ashamed for thinking of it, but... you can specify several inputdevices to a single driver. (Sort of like how the wacom driver accepts a stylus, a cursor and an eraser device). One of these "devices" could read from a different device entry than the others. Say, a named pipe. X will set up the select() / read callbacks, and you can therefore read a stream for unknown purposes and reconfigure the rest of the driver, as appropriate.
Problem that I see is that if any of your variables calls for a non-trivial change (such as a change in one of the AxisStruct's, or somebody hotplugged the input device in, and you have to reassociate the device to a new file handle), you need something less kludgish than this, that works at a higher level of abstraction than the Xinput driver.
--
____ .:. ____
Bryan W. Headley - [EMAIL PROTECTED]
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel