get_rel only on left click
This commit is contained in:
parent
1eedef65ee
commit
0bd7eae818
|
@ -106,6 +106,7 @@ def main(args):
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
quit()
|
quit()
|
||||||
elif event.type == pygame.MOUSEBUTTONDOWN:
|
elif event.type == pygame.MOUSEBUTTONDOWN:
|
||||||
|
if event.button == 1:
|
||||||
pygame.mouse.get_rel()
|
pygame.mouse.get_rel()
|
||||||
|
|
||||||
init_frame()
|
init_frame()
|
||||||
|
|
Loading…
Reference in New Issue