diff options
author | Thomas B Thompson <tbent@spice.(none)> | 2011-01-04 00:04:05 -0500 |
---|---|---|
committer | Thomas B Thompson <tbent@spice.(none)> | 2011-01-04 00:04:05 -0500 |
commit | 134de4472d3f2fa913944770595de9221dd27fdf (patch) | |
tree | cf83e29a1ef4931a15f9b30125fedbd8fba8caf9 /inputs | |
parent | f9aeaf10e3c9077504a78374640e79415734546b (diff) |
worked on profiling, made a bunch of changes, huge speedup!
Diffstat (limited to 'inputs')
-rw-r--r-- | inputs/PygameInput.py | 2 |
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()}) |