Describe the bug
Running a menu with mouse_visible=False does not work on a Raspberry with a PiTFT touchscreen.
To Reproduce
I copied the menu from the quickstart guide, and added mouse_visible=False.
Expected behavior
The menu does not react to any touch events.
Additional context
If I set mouse_visible=True it works as expected, but I want to disable the cursor. The mouse events are correctly triggered if I print them using
events = pygame.event.get()
for event in events:
if event.type == pygame.QUIT:
exit()
if event.type == pygame.MOUSEMOTION:
print(pygame.mouse.get_pos())
if event.type == pygame.MOUSEBUTTONDOWN:
print(pygame.mouse.get_pressed())
The touchscreen and touchscreen_motion_selection make no difference, but I'm not sure they should as they are only for pygame 2 right?
Environment information
Describe the bug Running a menu with
mouse_visible=False
does not work on a Raspberry with a PiTFT touchscreen.To Reproduce I copied the menu from the quickstart guide, and added
mouse_visible=False
.Expected behavior The menu does not react to any touch events.
Additional context If I set
mouse_visible=True
it works as expected, but I want to disable the cursor. The mouse events are correctly triggered if I print them usingThe
touchscreen
andtouchscreen_motion_selection
make no difference, but I'm not sure they should as they are only for pygame 2 right?