From f6dd5ab92949843d2fb163e2d84f19e824a291dc Mon Sep 17 00:00:00 2001 From: rcoh Date: Sun, 13 Feb 2011 03:57:56 -0500 Subject: Added OSC (phone controlled) behavior to the C5 Sign --- inputs/PygameInput.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inputs') 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 -- cgit v1.2.3