diff options
author | dxiao <dxiao@mit.edu> | 2011-02-13 04:08:05 -0500 |
---|---|---|
committer | dxiao <dxiao@mit.edu> | 2011-02-13 04:08:05 -0500 |
commit | fc141723d2a926d1a07e47eb3a9be6618986bf50 (patch) | |
tree | f0de17e59d2acc29df09d3a7df57abc1e87e04e6 /inputs/PygameInput.py | |
parent | 5de7f02a2b7bd8e79847311da834f025421726c6 (diff) | |
parent | f6dd5ab92949843d2fb163e2d84f19e824a291dc (diff) |
Merge branch 'conner5' of github.com:dxiao/SmootLight into conner5
Conflicts:
config/C5Sign.xml
Diffstat (limited to 'inputs/PygameInput.py')
-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 |