Hello everyone,
I need some help. I don't know if this is the right mailing list for this
matter, but as the general list denies development issues it seemed to me
like the at least most appropriate.
Currently I am working on an application which enables you to use two webcams,
mounted on the top of your monitor or everywhere else, as a kind of "optical"
mouse. The nearest object (which would be your finger or another pointing
device) gets detected and its room coordinates are calculated.
The point with this project (and what makes it different from other project
like the "Nouse" application) is that I want to bring it to real-life usage.
That means I am also writing a mouse driver for XFree86 which lets you use
this technology in your everyday work. The driver and the "calculating
application" communicate via a certain shared memory area. So far so good.
But now here's my problem. For the MouseReadInput function in mouse.c to be
executed, an event has to be emitted (at least it seems so, for with the
normal driver it is only executed when I move the mouse). But I am kind of a
newbiew concerning driver internal programming, so... Could anybody explain
this occurence to me? Is an event for the specific device emitted if the data
you get with read("/dev/mouse"...) (or whatever device the driver is set to
in xfree86config) changes? or does the mouse send a certain signal? and where
does it get processed?
I hope someone can help...
Thank you,
Regards
Jonas Wulff
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel