Browse Source

default inputStateTokens in case controlManager is deleted before ever enabled

Joe Shochet 18 years ago
parent
commit
eb08ce9e17
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/controls/ControlManager.py

+ 1 - 0
direct/src/controls/ControlManager.py

@@ -23,6 +23,7 @@ class ControlManager:
 
 
     def __init__(self, enable=True):
     def __init__(self, enable=True):
         assert self.notify.debugCall(id(self))
         assert self.notify.debugCall(id(self))
+        self.inputStateTokens = []
         self.controls = {}
         self.controls = {}
         self.currentControls = None
         self.currentControls = None
         self.currentControlsName = None
         self.currentControlsName = None