However, when using the mouse device the positioning is quite erratic and not accurate. Below example code using pygame.
BTW: I used this code with the PiTFT and that worked well.
Code: Select all
import sys, pygame, time from pygame.locals import * pygame.init() size = width, height = 800, 480 screen = pygame.display.set_mode(size, pygame.FULLSCREEN) while True: for event in pygame.event.get(): if event.type == pygame.MOUSEBUTTONDOWN: pygame.display.update() if event.type == KEYDOWN: if event.key == K_ESCAPE: sys.exit() time.sleep(0.1)
Do others experience the same? Or is something else going on? Any remedy?