Exemple #1
0
 def wxmouseMoved(self, glcanvas, evt):
     self.mouseLoc = evt.GetPosition()  #STORE MOUSELOC
     if evt.Dragging() and evt.LeftIsDown():
         if engine.checkMouseIntersection(
                 self.mouseLoc[0], self.mouseLoc[1], "mouseDragged"
         ) == None:  # << in case it was not defined avoid error. same below
             self.app.mouseDragged(self.mouseLoc[0], self.mouseLoc[1])
Exemple #2
0
 def rightMouseUp(self,x,y):
     if engine.checkMouseIntersection(x,y, "rightMouseUp") == None:
         self.app.rightMouseUp(x,y)
Exemple #3
0
 def mouseUp(self,x,y):
     if engine.checkMouseIntersection(x,y, "mouseUp") == None:
         self.app.mouseUp(x,y)
Exemple #4
0
 def wxrightMouseUp(self, glcanvas, evt) :
     if glcanvas.HasCapture() : 
         glcanvas.ReleaseMouse()
         x,y = evt.GetPosition()
         if engine.checkMouseIntersection(x,y, "rightMouseUp") == None:
              self.app.rightMouseUp(x,y)
Exemple #5
0
 def wxrightMouseDown(self, glcanvas, evt) :
     glcanvas.CaptureMouse()
     x,y = evt.GetPosition()
     if engine.checkMouseIntersection(x,y, "rightMouseDown") == None:
         self.app.rightMouseDown(x,y)
Exemple #6
0
 def wxmouseMoved(self, glcanvas, evt):
     self.mouseLoc = evt.GetPosition() #STORE MOUSELOC
     if evt.Dragging() and evt.LeftIsDown() :
         if engine.checkMouseIntersection(self.mouseLoc[0], self.mouseLoc[1], "mouseDragged") == None: # << in case it was not defined avoid error. same below
             self.app.mouseDragged(self.mouseLoc[0], self.mouseLoc[1])
Exemple #7
0
 def mouseDragged(self, x,y):
     if engine.checkMouseIntersection(x,y, "mouseDragged") == None: # << in case it was not defined avoid error. same below
         self.app.mouseDragged(x,y)
Exemple #8
0
 def rightMouseUp(self, x, y):
     if engine.checkMouseIntersection(x, y, "rightMouseUp") == None:
         self.app.rightMouseUp(x, y)
Exemple #9
0
 def mouseUp(self, x, y):
     if engine.checkMouseIntersection(x, y, "mouseUp") == None:
         self.app.mouseUp(x, y)
Exemple #10
0
 def wxrightMouseUp(self, glcanvas, evt):
     if glcanvas.HasCapture():
         glcanvas.ReleaseMouse()
         x, y = evt.GetPosition()
         if engine.checkMouseIntersection(x, y, "rightMouseUp") == None:
             self.app.rightMouseUp(x, y)
Exemple #11
0
 def wxrightMouseDown(self, glcanvas, evt):
     glcanvas.CaptureMouse()
     x, y = evt.GetPosition()
     if engine.checkMouseIntersection(x, y, "rightMouseDown") == None:
         self.app.rightMouseDown(x, y)
Exemple #12
0
 def mouseDragged(self, x, y):
     if engine.checkMouseIntersection(
             x, y, "mouseDragged"
     ) == None:  # << in case it was not defined avoid error. same below
         self.app.mouseDragged(x, y)