if event.type == pygame.MOUSEBUTTONDOWN:
print("MOUSEBUTTON")
Is this the right event for Mouse button pressed?
if event.type == pygame.MOUSEBUTTONDOWN:
print("MOUSEBUTTON")
Is this the right event for Mouse button pressed?
To see if mouse button was pressed you use MOUSEBUTTONDOWN
and event.button
.
To see if mouse button is held pressed use pygame.mouse.get_pressed()
It is similar to KEYDOWN
ad pygame.key.get_pressed()
on this image
Yes, from the documentation (boldface mine):