def startSeeking(self): LocationSeeker.startSeeking(self) if not self.dropShadow: return self.avatar.ignore('mouse1') self.lMouseDn = inputState.watch(self.mouseDownName, 'mouse1', 'mouse1-up') base.taskMgr.add(self.__pollMouseHeldDown, self.pollMouseTaskName)
def startSeeking(self): LocationSeeker.startSeeking(self) if not self.dropShadow: return # Let's actually ignore LEFT mouse clicks. self.avatar.ignore('mouse1') # Instead, let's start listening to LEFT mouse hold downs. self.lMouseDn = inputState.watch(self.mouseDownName, 'mouse1', 'mouse1-up') base.taskMgr.add(self.__pollMouseHeldDown, self.pollMouseTaskName)