aboutsummaryrefslogtreecommitdiff
path: root/behaviors
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-29 19:30:21 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-29 19:30:21 -0500
commitab7a4c8a8eeb1b47099daa81de1be45a3bbd39db (patch)
treeddfcf0249eb9470bc0083451d29447e598339e3b /behaviors
parentccb6ea18285a26b8cc8d99ae7d6540f8ca792398 (diff)
parent61d3da8be78c093384b7f87c854c09c255f6384e (diff)
Merge branch 'osc' of github.com:rcoh/SmootLight
Diffstat (limited to 'behaviors')
-rw-r--r--behaviors/TouchOSC.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/behaviors/TouchOSC.py b/behaviors/TouchOSC.py
index e7893e3..099d5e5 100644
--- a/behaviors/TouchOSC.py
+++ b/behaviors/TouchOSC.py
@@ -12,7 +12,8 @@ class TouchOSC(Behavior):
self.xy = (-1,-1)
def processResponse(self, sensorInputs, recursiveInputs):
ret = []
- for data in sensorInputs:
+ if sensorInputs:
+ data = sensorInputs[-1]#for data in sensorInputs:
if data['Path'] == '/1/fader1':
try:
self.h = data['Value'][0]