Getting pressure values from the touchpad

Bernardo Innocenti bernie at laptop.org
Wed Jan 23 13:27:50 EST 2008


Arjun Sarwal wrote:

> How can I obtain the value of the pressure applied at any point on the
> touchpad ?

The PenTablet does not send pressure information.
The GlideSensor does, and I think it's 4 bits.

There should be a Z axis mapped in evdev, and it could be read
through the Xinput extension.  libXi is the client-side library
to support that.

>From Python, you'll probably need to learn how to use ctypes.


> I am thinking whether I can use it(the touch pad) as a
> built-in pressure sensor.

It would be great to have a working example on how to do it.
Other people asked in the past, but few are familiar with
Xinput and get scared away by just hearing the name :-)

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/



More information about the Devel mailing list