From f105fc0365b5e95c574feafd89fcf4e18b625435 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Tue, 2 May 2006 21:05:36 +0000 Subject: [PATCH] Added current name so we know the current name of the current control --- direct/src/controls/ControlManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/direct/src/controls/ControlManager.py b/direct/src/controls/ControlManager.py index 030926c6ac..5fb76e683b 100755 --- a/direct/src/controls/ControlManager.py +++ b/direct/src/controls/ControlManager.py @@ -26,6 +26,7 @@ class ControlManager: self.enableJumpCounter = 1 self.controls = {} self.currentControls = None + self.currentControlsName = None self.isEnabled = 1 #self.monitorTask = taskMgr.add(self.monitor, "ControlManager-%s"%(id(self)), priority=-1) inputState.watch("run", "running-on", "running-off") @@ -129,6 +130,7 @@ class ControlManager: self.currentControls.setCollisionsActive(0) self.currentControls.setAvatar(None) self.currentControls = controls + self.currentControlsName = name self.currentControls.setAvatar(avatar) self.currentControls.setCollisionsActive(1) if self.isEnabled: