aboutsummaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-04 10:43:21 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-04 10:43:21 -0500
commitdcc7afcea31c968575446b7f215d6780f747d7fb (patch)
tree52591d98be214371d96795f4995e637ce95d7759 /inputs
parentf5c29b39f3eef83227e3fb7c550d9b2922a19894 (diff)
parent134de4472d3f2fa913944770595de9221dd27fdf (diff)
Merge branch 'bens-cleanup' of github.com:rcoh/SmootLight
Conflicts: operationscore/Input.py pixelevents/DecayEvent.py util/ColorOps.py
Diffstat (limited to 'inputs')
-rw-r--r--inputs/PygameInput.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/inputs/PygameInput.py b/inputs/PygameInput.py
index 6779a20..a39c089 100644
--- a/inputs/PygameInput.py
+++ b/inputs/PygameInput.py
@@ -13,6 +13,8 @@ class PygameInput(Input):
return
for event in pygame.event.get():
if event.type is KEYDOWN:
+ if event.key == 301:
+ exit()
self.respond({Strings.LOCATION: (5,5),'Key': event.key})
if event.type is MOUSEBUTTONDOWN:
self.respond({Strings.LOCATION: pygame.mouse.get_pos()})