Some debug mouse events
This commit is contained in:
@@ -136,6 +136,7 @@ class GUI_PyGame:
|
|||||||
if event.type == pygame.QUIT: return
|
if event.type == pygame.QUIT: return
|
||||||
elif event.type == pygame.KEYDOWN: handle_keypress(event.key)
|
elif event.type == pygame.KEYDOWN: handle_keypress(event.key)
|
||||||
elif event.type == pygame.MOUSEBUTTONDOWN: handle_mousebutton(event.button, event.pos)
|
elif event.type == pygame.MOUSEBUTTONDOWN: handle_mousebutton(event.button, event.pos)
|
||||||
|
elif event.type == pygame.MOUSEBUTTONUP: handle_mousebutton(event.button, event.pos)
|
||||||
# Ignore all input that happened inbetween
|
# Ignore all input that happened inbetween
|
||||||
pygame.event.clear()
|
pygame.event.clear()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user