def on_mouse_press(self, x, y, button, modifiers): if button == pyglet.window.mouse.LEFT: self.tbcam.mouse_roll(norm1(x, self.width), norm1(y, self.height), False) elif button == pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom(norm1(x, self.width), norm1(y, self.height), False)
def on_mouse_press(self, x, y, button, modifiers): # pylint: disable-msg=W0221,C0103 if button == pyglet.window.mouse.LEFT: self.tbcam.mouse_roll(norm1(x, self.width), norm1(y, self.height), False) elif button == pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom(norm1(x, self.width), norm1(y, self.height), False)
def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): # pylint: disable-msg=W0221,C0103 if buttons & pyglet.window.mouse.LEFT: self.tbcam.mouse_roll( norm1(x, self.width), norm1(y, self.height)) elif buttons & pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom( norm1(x, self.width), norm1(y, self.height))
def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): if buttons & pyglet.window.mouse.LEFT: self.tbcam.mouse_roll( norm1(x, self.width), norm1(y, self.height)) elif buttons & pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom( norm1(x, self.width), norm1(y, self.height))
def on_mouse_press(self, x, y, button, modifiers): # pylint: disable-msg=W0221,C0103 if button == pyglet.window.mouse.LEFT: self.tbcam.mouse_roll( norm1(x, self.width), norm1(y, self.height), False) elif button == pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom( norm1(x, self.width), norm1(y, self.height), False)
def on_mouse_press(self, x, y, button, modifiers): if button == pyglet.window.mouse.LEFT: self.tbcam.mouse_roll( norm1(x, self.width), norm1(y, self.height), False) elif button == pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom( norm1(x, self.width), norm1(y, self.height), False)
def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): # pylint: disable-msg=W0221,C0103 if buttons & pyglet.window.mouse.LEFT: self.tbcam.mouse_roll(norm1(x, self.width), norm1(y, self.height)) elif buttons & pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom(norm1(x, self.width), norm1(y, self.height))
def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers): if buttons & pyglet.window.mouse.LEFT: self.tbcam.mouse_roll(norm1(x, self.width), norm1(y, self.height)) elif buttons & pyglet.window.mouse.RIGHT: self.tbcam.mouse_zoom(norm1(x, self.width), norm1(y, self.height))