changed isSet to return 0 default

This commit is contained in:
Dave Schuyler 2005-10-19 00:11:42 +00:00
parent c25f0e3607
commit 1f8be159b2

View File

@ -88,13 +88,13 @@ class InputState(DirectObject.DirectObject):
def isSet(self, name):
"""
returns 0, 1, or None (if we're not tracking it at all)
returns 0, 1
"""
#assert(self.debugPrint("isSet(name=%s)"%(name)))
r = self.forcing.get(name)
if r is not None:
return r
return self.state.get(name)
return self.state.get(name, 0)
def debugPrint(self, message):
"""for debugging"""