View Single Post
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#2
I'm not sure if it's possible with the n900's screen, not with any kind of real accuracy anyway. However, you might want to check out http://doc.qt.nokia.com/4.6/qtouchevent-touchpoint.html and try pressure() it to see if it works.

Code:
qreal TouchPoint::pressure () const
Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0.
If this doesnt work, what you may be able to detect is how much of the screen is being pressed, for example a light touch of a finger tip compared to a jolly big prod with a thumb. Or the length of time an area is touched. However I'll be interested in your results to see if it works consistently.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2010-06-26 at 01:03.