Exemple #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)
Exemple #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)
Exemple #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))
Exemple #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))
Exemple #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)
Exemple #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)
Exemple #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))
Exemple #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))