Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
#------------------------#
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rightclick #pygame
ADD COMMENT
Topic
Name
8+5 =