Mercurial > touhou
comparison pytouhou/ui/gamerunner.py @ 353:451bee1d2cec
Allow Z as well as W to shoot.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 07 Jul 2012 21:48:58 +0200 |
parents | 2c4589370cc6 |
children | 74471afbac37 |
comparison
equal
deleted
inserted
replaced
352:cca5843c2e95 | 353:451bee1d2cec |
---|---|
124 self.background.update(self.game.frame) | 124 self.background.update(self.game.frame) |
125 if self.game: | 125 if self.game: |
126 if not self.replay_level: | 126 if not self.replay_level: |
127 #TODO: allow user settings | 127 #TODO: allow user settings |
128 keystate = 0 | 128 keystate = 0 |
129 if self.keys[pyglet.window.key.W]: | 129 if self.keys[pyglet.window.key.W] or self.keys[pyglet.window.key.Z]: |
130 keystate |= 1 | 130 keystate |= 1 |
131 if self.keys[pyglet.window.key.X]: | 131 if self.keys[pyglet.window.key.X]: |
132 keystate |= 2 | 132 keystate |= 2 |
133 #TODO: on some configurations, LSHIFT is Shift_L when pressed | 133 #TODO: on some configurations, LSHIFT is Shift_L when pressed |
134 # and ISO_Prev_Group when released, confusing the hell out of pyglet | 134 # and ISO_Prev_Group when released, confusing the hell out of pyglet |