python - Disabling Mouse events - Pygame -


i have game made that, when die, message appears reading "game over. press key play again."

however, counts mouse input have no if statements in loop. wondering if there key word can use? can't seem find 1 on google.

if event.type != mousemove: 

this hoping maybe there way it. help!

do before event loop:

pygame.event.set_blocked(pygame.mousemotion) 

you'll want block other events, too. see more here: https://www.pygame.org/docs/ref/event.html


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -