mouse any command

This commit is contained in:
Frank 2016-09-10 21:37:16 -04:00
parent a92fe4df98
commit 470e1a66de
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ class Input(GameChild):
post("mouse-double-click-left", pos=pos)
last = get_secs()
self.last_mouse_down_left = last
if "mouse" not in self.any_press_ignored_keys:
self.post_any_command(event.button)
if event.type == MOUSEBUTTONUP:
if "mouse" not in self.any_press_ignored_keys:
self.post_any_command(event.button, True)
def get_axes(self):
axes = {}