Mercurial > touhou
diff pytouhou/ui/gamerunner.pyx @ 538:1abb6f7db8cc
Don’t retrieve the keyboard_state pointer at each frame.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 24 Apr 2014 20:01:42 +0200 |
parents | 7c3c90468996 |
children | 56bca8ce4b68 |
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.pyx +++ b/pytouhou/ui/gamerunner.pyx @@ -129,7 +129,7 @@ cdef class GameRunner(Runner): self.window.set_size(event[2], event[3]) if self.replay_level is None: #TODO: allow user settings - keys = sdl.get_keyboard_state() + keys = sdl.keyboard_state keystate = 0 if keys[sdl.SCANCODE_Z]: keystate |= 1