def move(self):
        self.amt = self.camera.sensitivity * self.camera.pos.dist(self.camera.origin)
        redraw = False
        if self.direction != (0, 0):
            self.camera.rotate(self.direction)
            redraw = True
        if self.app.resized:
            self.app.dragVal = (0,0)
            self.app.resized = False
            redraw = True
        elif self.app.dragVal != (0,0):
            self.camera.rotate((-self.sensitivity * self.app.dragVal[0],
                                -self.sensitivity * self.app.dragVal[1]))
            redraw = True
            self.app.dragVal = (self.app.dragVal[0] * 0.7,
                                self.app.dragVal[1] * 0.7)            
            if self.app.dragVal[0] < 0.01 and self.app.dragVal[1] < 0.01:
                self.app.dragVal = (0,0)
        return redraw
dataset/ETHPy150Open bluquar/cubr/cube.py/Cube.move/original