Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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))
Esempio n. 4
0
 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))
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)
Esempio n. 7
0
 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))
Esempio n. 8
0
 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))