Added on_mouse_drag event to MouseStateHandler.
@@ -70,6 +70,10 @@ class MouseStateHandler(dict):
self["x"] = x
self["y"] = y
+ def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
+ self["x"] = x
+ self["y"] = y
+
def __getitem__(self, key):
return self.get(key, False)
