From ff36d3e4282e2e3d63a2beb852facf3425488e70 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Fri, 24 Oct 2008 22:50:46 +0000 Subject: [PATCH] putting prints into notify debug --- direct/src/controls/ControlManager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/direct/src/controls/ControlManager.py b/direct/src/controls/ControlManager.py index a1af67c7fd..dd8a187888 100755 --- a/direct/src/controls/ControlManager.py +++ b/direct/src/controls/ControlManager.py @@ -22,6 +22,7 @@ class ControlManager: wantWASD = config.GetBool('want-WASD', 0) def __init__(self, enable=True, passMessagesThrough = False): + assert self.notify.debug("init control manager %s" % (passMessagesThrough)) assert self.notify.debugCall(id(self)) self.passMessagesThrough = passMessagesThrough self.inputStateTokens = [] @@ -64,7 +65,7 @@ class ControlManager: assert controls is not None oldControls = self.controls.get(name) if oldControls is not None: - print "Replacing controls:", name + assert self.notify.debug("Replacing controls: %s" % name) oldControls.disableAvatarControls() oldControls.setCollisionsActive(0) oldControls.delete() @@ -89,7 +90,7 @@ class ControlManager: assert self.notify.debugCall(id(self)) oldControls = self.controls.pop(name,None) if oldControls is not None: - print "Removing controls:", name + assert self.notify.debug("Removing controls: %s" % name) oldControls.disableAvatarControls() oldControls.setCollisionsActive(0) @@ -130,7 +131,7 @@ class ControlManager: #else: # print "Controls are already", name else: - print "Unkown controls:", name + assert self.notify.debug("Unkown controls: %s" % name) def setSpeeds(self, forwardSpeed, jumpForce, reverseSpeed, rotateSpeed, strafeLeft=0, strafeRight=0):