mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
changed isSet to return 0 default
This commit is contained in:
parent
c25f0e3607
commit
1f8be159b2
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user