aboutsummaryrefslogtreecommitdiff
path: root/inputs/PygameInput.py
diff options
context:
space:
mode:
authorGravatar dxiao <dxiao@mit.edu>2011-02-13 04:08:05 -0500
committerGravatar dxiao <dxiao@mit.edu>2011-02-13 04:08:05 -0500
commitfc141723d2a926d1a07e47eb3a9be6618986bf50 (patch)
treef0de17e59d2acc29df09d3a7df57abc1e87e04e6 /inputs/PygameInput.py
parent5de7f02a2b7bd8e79847311da834f025421726c6 (diff)
parentf6dd5ab92949843d2fb163e2d84f19e824a291dc (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.py4
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