aboutsummaryrefslogtreecommitdiff
path: root/operationscore/Input.py
diff options
context:
space:
mode:
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 67a7bb0..9ee59f8 100644
--- a/operationscore/Input.py
+++ b/operationscore/Input.py
@@ -32,7 +32,10 @@ class Input(threading.Thread):
def respond(self, eventDict):
#if eventDict != []:
#pdb.set_trace()
+ self.parentScope.lock.acquire()
self.parentScope.processResponse(self.argDict, eventDict)
+ self.parentScope.lock.release()
+ time.sleep(.001)
def newEvent(self, event): #Mostly just useful for grabbing events from the
#computer running the sim (key presses, clicks etc.)
self.eventQueue.append(event)