mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
Added current name so we know the current name of the current control
This commit is contained in:
parent
33d94245bd
commit
f105fc0365
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user