Running most recent Raspbian (2019-09-26) with Python 3.7.3 touch events are not correcly recognised. The reported touch position will only ever be registered at the edges of the display.
I found adding pygame.mouse.set_visible(True) just before while True in main loop can solve the problem.
Running most recent Raspbian (2019-09-26) with Python 3.7.3 touch events are not correcly recognised. The reported touch position will only ever be registered at the edges of the display.
I found adding
pygame.mouse.set_visible(True)
just beforewhile True
in main loop can solve the problem.