diff options
author | Thomas B Thompson <tbent@spice.(none)> | 2011-01-10 22:23:49 -0500 |
---|---|---|
committer | Thomas B Thompson <tbent@spice.(none)> | 2011-01-10 22:23:49 -0500 |
commit | bb1d982669c44a990ffc926f4666b6aa72237619 (patch) | |
tree | b3d3e3e48423d89658cc11608d17bbee5d92a8d8 /inputs | |
parent | 21e961d8074570cca27b2661582d728be85b18b9 (diff) |
Worked on getting the threading stuff consolidated in ThreadedSmootCoreObject. Also set up a decent system for SmootCoreObjects to kill the whole application in a managed fashion.
Diffstat (limited to 'inputs')
-rw-r--r-- | inputs/PygameInput.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inputs/PygameInput.py b/inputs/PygameInput.py index a39c089..27b82b0 100644 --- a/inputs/PygameInput.py +++ b/inputs/PygameInput.py @@ -13,8 +13,8 @@ class PygameInput(Input): return for event in pygame.event.get(): if event.type is KEYDOWN: - if event.key == 301: - exit() + if event.key == 27: + self.die() self.respond({Strings.LOCATION: (5,5),'Key': event.key}) if event.type is MOUSEBUTTONDOWN: self.respond({Strings.LOCATION: pygame.mouse.get_pos()}) |