On Wed, May 6, 2009 at 1:54 PM, Ville Syrjälä <syrj...@sci.fi> wrote: > On Tue, May 05, 2009 at 07:27:30PM +0200, Sven Neumann wrote: >> Hi, >> >> the DFBInputEvent struct has min and max fields that can optionally be >> set. The documentation for DFBInputEventFlags indicates that they are >> useful for handling absolute motion events. And indeed that's where I >> would like to use them. Unfortunately it appears that the linux-input >> driver does not set these fields. Can that be considered a bug and would >> you accept a patch that fixes this? Or am I misunderstanding the purpose >> of these fields? > > You understanding matches mine, but I didn't add that stuff so who > knows :)
I worked on this problem/something similar a while ago... My touch screen was detected as a linux_input device and instead of trying to get tslib working, I simply scaled and fixed the offset for my min/max and made the variables available in the directfbrc file. See my old post: http://mail.directfb.org/pipermail/directfb-dev/2009-January/004788.html I realized just recently that detecting a descent min/max x/y should be done with a normalize distribution of values instead of one-time min/max as there may be an occasional value which is really out of the normal range (think about approaching the edge of a resistive screen mounted inside a panel which covers .1" on the edge of the screen).. Hope it helps, - Azilat _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev