Touchscreen pressure info


keek

Member
Joined
Oct 10, 2008
Messages
45
Here are the python classes I used for adding pressure sensitivity to MyPaint. Two files:


- evdev.py does all the hard work of reading /dev/input/event* devices


- pandora.py uses evdev.py to present the touchscreen data in an easy way. Currently it is optimized for pressure values of the stylus.


At the bottom of pandora.py is a small example of how to use it.


I hope it is useful!

pandora.tar.gz
 

Attachments

  • pandora.tar.gz
    6.6 KB · Views: 274
That's pretty cool!


Maybe you should cross-post this in general development. Even if they're not using Python, they might be interested to see your methods for extracting pressure data.
 
Back
Top