final changes for better touch function
This commit is contained in:
1
main.py
1
main.py
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user