diff options
author | rcoh <rcoh@mit.edu> | 2011-02-13 03:57:56 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-13 03:57:56 -0500 |
commit | f6dd5ab92949843d2fb163e2d84f19e824a291dc (patch) | |
tree | ea305104129abd1d4f8233590e2a41070d2f3cfb /inputs | |
parent | db19c9731c7bed3716a387a0db5b56dd3ba72104 (diff) |
Added OSC (phone controlled) behavior to the C5 Sign
Diffstat (limited to 'inputs')
-rw-r--r-- | inputs/PygameInput.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inputs/PygameInput.py b/inputs/PygameInput.py index 480630c..8de55f9 100644 --- a/inputs/PygameInput.py +++ b/inputs/PygameInput.py @@ -15,6 +15,10 @@ class PygameInput(Input): NB: If follow mouse is enabled, PygameInput will not return mouse and keypresses. You can, however, instantiate other PygameInputs in the XML that will capture mouse and keypresses.""" def sensingLoop(self): + if 'Scale' in self: + scale = self['Scale'] + else: + scale = 1 if self['FollowMouse']: self.respond({Strings.LOCATION: pygame.mouse.get_pos()}) return |