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])
def rightMouseUp(self,x,y): if engine.checkMouseIntersection(x,y, "rightMouseUp") == None: self.app.rightMouseUp(x,y)
def mouseUp(self,x,y): if engine.checkMouseIntersection(x,y, "mouseUp") == None: self.app.mouseUp(x,y)
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)
def wxrightMouseDown(self, glcanvas, evt) : glcanvas.CaptureMouse() x,y = evt.GetPosition() if engine.checkMouseIntersection(x,y, "rightMouseDown") == None: self.app.rightMouseDown(x,y)
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])
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)
def rightMouseUp(self, x, y): if engine.checkMouseIntersection(x, y, "rightMouseUp") == None: self.app.rightMouseUp(x, y)
def mouseUp(self, x, y): if engine.checkMouseIntersection(x, y, "mouseUp") == None: self.app.mouseUp(x, y)
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)
def wxrightMouseDown(self, glcanvas, evt): glcanvas.CaptureMouse() x, y = evt.GetPosition() if engine.checkMouseIntersection(x, y, "rightMouseDown") == None: self.app.rightMouseDown(x, y)
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)