On Wed, Mar 28, 2007 at 05:16:36PM +0300, ext Marius Gedminas wrote: > On Wed, Mar 28, 2007 at 03:52:18PM +0300, Daniel Stone wrote: > > Enable extended events in your GTK application, and ensure that axis 2 > > (i.e. the third axis) is set as PRESSURE (set_axis_use) or something, > > and now the PRESSURE field of every event will be valid. OTOH, I think > > GTK might already do this for you. > > Thanks. Here's some source code for that as well: > http://groups.google.com/group/fbreader/msg/86fceebf61e5e358 > > It's from FBReader. That method distinguishes stylus taps from thumb > presses in all Maemo versions that do i tin three different ways. > > There is one bit of guesswork there. What's the pressure value > threshold used to detect thumb presses in the system by such controls as > the thumb-aware menus?
Hi, As Tuomas posted, there's a Hildon finger API which will tell you whether or not it's a finger press, hiding all the voodoo from you. If you just want a pure pressure value, then check the pressure field. Cheers, Daniel
signature.asc
Description: Digital signature
_______________________________________________ maemo-developers mailing list [email protected] https://maemo.org/mailman/listinfo/maemo-developers
