get_rel only on left click

This commit is contained in:
Thomas FORGIONE 2016-11-22 17:29:25 +01:00
parent 1eedef65ee
commit 0bd7eae818
1 changed files with 2 additions and 1 deletions

View File

@ -106,6 +106,7 @@ def main(args):
pygame.quit()
quit()
elif event.type == pygame.MOUSEBUTTONDOWN:
if event.button == 1:
pygame.mouse.get_rel()
init_frame()