I'm trying to get mouse button input in pygame but it doesn't work. I've tried
if pygame.mouse.get_pressed() == True:
"do something"
,
if pygame.mouse.get_pressed() == (1,0,0):
"do something"
,
if pygame.mouse.get_pressed()[0]:
"do something"
...
I think everything from the docs but it does nothing and the if pygame.mouse.get_pressed() == (1,0,0): always worked before.
(if mouse_pos == (PlayCoordsx, PlayCoordsy) and pygame.mouse.get_pressed() == (1, 0, 0):)
Can someone tell me what I'm doing wrong?