Thanks Heine and Adafruit,
I had the same problem when moving my piradiohttps://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen/overview
from wheezy to jessie. Touchscreen had erractic behavior under pygame only (Ok with X).
Found this script, fixed!
But may I suggest to correct the Adafruit "PiTFT Pygame Tips" page.
Because this page was the first place were I went and read
"SDL 2.x has some serious incompatibilities with touchscreen. You can force SDL 1.2 by running a script"
I checked on my new Adafruit PiTFT jessie install:
- Code: Select all | TOGGLE FULL SIZE
dpkg -l | grep libsdl
ii libsdl-image1.2:armhf 1.2.12-5+b1 armhf Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-mixer1.2:armhf 1.2.12-11+b1 armhf Mixer library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-ttf2.0-0:armhf 2.0.11-3 armhf TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl1.2debian:armhf 1.2.15-10+rpi1 armhf Simple DirectMedia Layer
I though, well I'm ok I'm not with sdl 2 but sdl 1.2, so my problem is something else. I went on the forum and found this solution that worked.But the fix is to replace sdl 1.2.15-10 with 1.2.15-5 (Not sdl 2 with 1.2)
Anyway it worked fine, thanks again