コード例 #1
0
ファイル: show_ao.py プロジェクト: parhelia512/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)
コード例 #2
0
ファイル: show_ao.py プロジェクト: ZandrXandr/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)
コード例 #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
ファイル: show_ao.py プロジェクト: ZandrXandr/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))
コード例 #8
0
ファイル: show_ao.py プロジェクト: parhelia512/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))