some fps speed up

This commit is contained in:
沈瑗杰 2021-04-10 22:48:22 +08:00
parent 0c9da19cb2
commit f6e4f3b42a

View File

@ -245,10 +245,12 @@ class window(pyglet.window.Window):
""" """
def on_mouse_motion(self, x, y, dx, dy): def on_mouse_motion(self, x, y, dx, dy):
self.logger.debug('按键移动 %s %s %s %s' % (x, y, dx, dy)) # self.logger.debug('按键移动 %s %s %s %s' % (x, y, dx, dy))
pass
def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
self.logger.debug('按键拖拽 %s %s %s %s %s %s' %(x, y, dx, dy, buttons, modifiers)) # self.logger.debug('按键拖拽 %s %s %s %s %s %s' %(x, y, dx, dy, buttons, modifiers))
pass
def on_mouse_press(self, x, y, button, modifiers): def on_mouse_press(self, x, y, button, modifiers):
if button == mouse.LEFT: if button == mouse.LEFT: