diff options
author | mdan <mdan@roomy1.mit.edu> | 2011-01-27 17:58:47 -0500 |
---|---|---|
committer | mdan <mdan@roomy1.mit.edu> | 2011-01-27 17:58:47 -0500 |
commit | 44659801073c059aeac5a992dc241648263c74b6 (patch) | |
tree | 28df191339d77bd8b80e30c6ba12f03dab85d0ae /behaviors | |
parent | 8d014f88994c5c5d616aca790bf80b7abb2c5198 (diff) |
Modifies OSC configuration and behavior.
Diffstat (limited to 'behaviors')
-rw-r--r-- | behaviors/TouchOSC.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |