Skip to content

Python code snippet – How to get the mouse input in pygame?

if event.type == pygame.MOUSEBUTTONDOWN:
1 - left click
2 - middle click
3 - right click
4 - scroll up
5 - scroll down
See also  How to add items in Python list?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.