From a82884f258f3c504454585e79868339c66423b5d Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Thu, 28 May 2015 00:07:02 +0200 Subject: [PATCH] Some debug mouse events --- photobooth.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/photobooth.py b/photobooth.py index 9747e5d..bbcd401 100755 --- a/photobooth.py +++ b/photobooth.py @@ -135,8 +135,12 @@ class GUI_PyGame: # Handle the event if event.type == pygame.QUIT: return elif event.type == pygame.KEYDOWN: handle_keypress(event.key) - elif event.type == pygame.MOUSEBUTTONDOWN: handle_mousebutton(event.button, event.pos) - elif event.type == pygame.MOUSEBUTTONUP: handle_mousebutton(event.button, event.pos) + elif event.type == pygame.MOUSEBUTTONDOWN: + print("MOUSEBUTTONDOWN") + handle_mousebutton(event.button, event.pos) + elif event.type == pygame.MOUSEBUTTONUP: + print("MOUSEBUTTONUP") + handle_mousebutton(event.button, event.pos) # Ignore all input that happened inbetween pygame.event.clear()