From 0bd7eae818c22a407e2078462c24a474ef085fa6 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 22 Nov 2016 17:29:25 +0100 Subject: [PATCH] get_rel only on left click --- modelviewer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modelviewer.py b/modelviewer.py index 0706680..b6969da 100755 --- a/modelviewer.py +++ b/modelviewer.py @@ -106,7 +106,8 @@ def main(args): pygame.quit() quit() elif event.type == pygame.MOUSEBUTTONDOWN: - pygame.mouse.get_rel() + if event.button == 1: + pygame.mouse.get_rel() init_frame()