Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame event mouse right click

if event.type == pygame.MOUSEBUTTONDOWN:
	if event.button == 1:
    	print('LEFT MOUSE BUTTON CLICKED')
    elif event.button == 3:
    	print('RIGHT MOUSE BUTTON CLICKED')
 
PREVIOUS NEXT
Tagged: #pygame #event #mouse #click
ADD COMMENT
Topic
Name
2+5 =