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 - PiTFT touchscreen gives crazy, jumping output (pygame)
Summary: PiTFT touchscreen gives crazy, jumping output (pygame)
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 1.2.15
Hardware: ARM Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-04 21:53 UTC by przemo
Modified: 2018-07-04 21:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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