Re: How to get pen pressure under Opie?

Holger Schurig <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
> Does anybody have a solution to that problem? Obviously, a good drawing
> application _must_ have access to such information.

I'm not sure about Sharp or HP devices, but the pen pressure on my device 
wouldn't really be useful. When I take some thing (e.g. a razor, or a pen) 
and put it at various locations of my touch panel, then the reported pressure 
is not identical, despite the weight of the thing and therefore the applied 
pressure is.

I think this is because this kind of touch panels are just made for this: 
measuring touches. Here it is good enought if the value is above some level, 
the exact value doesn't interest.

So, before you dive into your app, I'd suggest that you stop Opie, use the 
tslib-utils to get a read out of the pressure and make some tests to see if 
you can get values that make sense. Only then would it make sense to look 
where the pressure vanishes and how to get it. If your device uses the new 
Kernel 2.6 way (which was also present in Kernel 2.4) of /dev/input/eventX, 
then there's no problem if two programs open the same /dev/input/eventX 
device at the same time. So your drawing app could do the same, and 
short-circuit tslib if tslib doesn't allow this.

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.