Answers for "rightclick in pygame"

1

rightclick 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
0

pygame left click

if event.type == pygame.MOUSEBUTTONDOWN:
  if event.button == 1:
    print("Left Mouse Button Down!")
Posted by: Guest on April-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language