“Pygame Left Click” Respostas de código

Clique com o direito de pygame

if event.type == pygame.MOUSEBUTTONDOWN:
    print(event.button)
    
#------------------------#
1 - left click
2 - middle click
3 - right click
4 - scroll up
5 - scroll down
#------------------------#
Shakedcode

Pygame Left Click

if event.type == pygame.MOUSEBUTTONDOWN:
  if event.button == 1:
    print("Left Mouse Button Down!")
Blushing Beaver

Pygame Event Mouse Clique com o botão direito do mouse

if event.type == pygame.MOUSEBUTTONDOWN:
	if event.button == 1:
    	print('LEFT MOUSE BUTTON CLICKED')
    elif event.button == 3:
    	print('RIGHT MOUSE BUTTON CLICKED')
a literal child

Respostas semelhantes a “Pygame Left Click”

Perguntas semelhantes a “Pygame Left Click”

Procure respostas de código populares por idioma

Procurar outros idiomas de código