Answers for "how to get the mouse input in pygame"

1

how to get the mouse input in pygame

if event.type == pygame.MOUSEBUTTONDOWN:
    print(event.button)
    
#------------------------#
1 - left click
2 - middle click
3 - right click
4 - scroll up
5 - scroll down
#------------------------#
Posted by: Guest on July-28-2021

Code answers related to "how to get the mouse input in pygame"

Python Answers by Framework

Browse Popular Code Answers by Language