aboutsummaryrefslogtreecommitdiff
path: root/operationscore
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-17 02:45:27 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-17 02:45:27 -0500
commit67c62d8c9e650f594e9aea348b8ed0c1351c7d81 (patch)
treee71d7ac7fc2538eda3e43e8e591342cab9620d06 /operationscore
parent2df9e408a0ff74539862c4a4e562a878cc11a329 (diff)
Added JPGInput to process images. Modified Input and LightInstallation to support passing multiple
inputs simultaeneously. Added FadeIn Pixel event. Needs work / configurability.
Diffstat (limited to 'operationscore')
-rw-r--r--operationscore/Input.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/operationscore/Input.py b/operationscore/Input.py
index 5a835ec..7720847 100644
--- a/operationscore/Input.py
+++ b/operationscore/Input.py
@@ -17,7 +17,11 @@ class Input(ThreadedSmootCoreObject):
self.inputInit()
def respond(self, eventDict):
- eventDict['InputId'] = self['Id']
+ if isinstance(eventDict, list):
+ for d in eventDict:
+ d['InputId'] = self['Id']
+ else:
+ eventDict['InputId'] = self['Id']
self.parentScope.lock.acquire()
self.parentScope.processResponse(self.argDict, eventDict)
self.parentScope.lock.release()