[maemo-developers] Maemo documentation - feedback time is now

From: Daniel Stone daniel.stone at nokia.com
Date: Wed Mar 28 18:18:34 EEST 2007
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?

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070328/a3ca2ee6/attachment.pgp 
More information about the maemo-developers mailing list