pygame left click

Solutions on MaxInterview for pygame left click by the best coders in the world

showing results for - "pygame left click"
Juliana
01 May 2019
1if event.type == pygame.MOUSEBUTTONDOWN:
2    print(event.button)
3    
4#------------------------#
51 - left click
62 - middle click
73 - right click
84 - scroll up
95 - scroll down
10#------------------------#
Abbie
06 Jun 2018
1if event.type == pygame.MOUSEBUTTONDOWN:
2  if event.button == 1:
3    print("Left Mouse Button Down!")