final changes for better touch function

This commit is contained in:
2025-05-03 01:56:31 +02:00
parent 019a674cac
commit c353b5645e

View File

@@ -496,6 +496,7 @@ async def show_instruction_screen(image):
pygame.display.flip() pygame.display.flip()
await asyncio.sleep(0) await asyncio.sleep(0)
for event in pygame.event.get(): for event in pygame.event.get():
await asyncio.sleep(0)
result = await touch(event) result = await touch(event)
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
pygame.quit() pygame.quit()