예제 #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)
예제 #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)
예제 #3
0
파일: show_ao.py 프로젝트: 0x0ade/Fezzer-2
 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))
예제 #4
0
파일: show_ao.py 프로젝트: fesh0r/xnb_parse
 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))
예제 #5
0
파일: show_ao.py 프로젝트: 0x0ade/Fezzer-2
 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)
예제 #6
0
파일: show_ao.py 프로젝트: fesh0r/xnb_parse
 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)
예제 #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))
예제 #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))