We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4212

Summary: PiTFT touchscreen gives crazy, jumping output (pygame)
Product: SDL Reporter: przemo
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.15   
Hardware: ARM   
OS: Linux   

Description przemo 2018-07-04 21:53:59 UTC
The hardware: raspberry pi + PiTFT 2.8" capacitive touchscreen.
Test case:
import sys, pygame, os

os.putenv('SDL_MOUSEDEV', '/dev/input/touchscreen')
os.environ["SDL_FBDEV"] = "/dev/fb1"
os.putenv('SDL_VIDEODRIVER', 'fbcon')
os.putenv('SDL_MOUSEDRV', 'TSLIB')
pygame.init()

size = width, height = 240, 320

screen = pygame.display.set_mode(size)

while 1:
    for event in pygame.event.get():
        if event.type == pygame.QUIT: sys.exit()
    pygame.display.flip()

I can provide a video, but essentially cursor jumps around instead of following the finger. It used to work somewhere around version 1.2.15 (to be confirmed). Much more info here:

https://forums.adafruit.com/viewtopic.php?f=47&t=76169&p=439894#p435225