From 44659801073c059aeac5a992dc241648263c74b6 Mon Sep 17 00:00:00 2001 From: mdan Date: Thu, 27 Jan 2011 17:58:47 -0500 Subject: Modifies OSC configuration and behavior. --- behaviors/TouchOSC.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'behaviors') diff --git a/behaviors/TouchOSC.py b/behaviors/TouchOSC.py index 1c41b5e..354b845 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]*360.0 -- cgit v1.2.3