aboutsummaryrefslogtreecommitdiff
path: root/operationscore/Input.py
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2011-02-20 23:00:18 -0500
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2011-02-20 23:00:18 -0500
commitee5dc03fbf6b75328295f5a6115f5d6a5c33455e (patch)
treedb39963c35214ad0d7e33474e19e0ae221831c0a /operationscore/Input.py
parenta742e43c387d089b344c0e293cf1b4292ee57c58 (diff)
parent6cb8952976d771d5f3be20a1eb1cd9b957651a54 (diff)
Merge branch 'conner5' of git://github.com/dxiao/SmootLight into conner5
Diffstat (limited to 'operationscore/Input.py')
-rw-r--r--operationscore/Input.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/operationscore/Input.py b/operationscore/Input.py
index 7720847..8800556 100644
--- a/operationscore/Input.py
+++ b/operationscore/Input.py
@@ -14,6 +14,7 @@ class Input(ThreadedSmootCoreObject):
if not 'RefreshInterval' in self.argDict:
self.argDict['RefreshInterval'] = 500
self.parentScope = self.argDict['parentScope']
+ self.done = False
self.inputInit()
def respond(self, eventDict):
@@ -44,6 +45,8 @@ class Input(ThreadedSmootCoreObject):
self.acquireLock()
self.sensingLoop()
self.releaseLock()
+ if self.done:
+ break
def sensingLoop(self):
pass