comparison pytouhou/ui/gamerunner.pyx @ 578:00f228b57840

Make Runner.update callable from Python code.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 04 Aug 2014 18:18:55 +0200
parents 56bca8ce4b68
children 19d930f9e3f0
comparison
equal deleted inserted replaced
577:e35a083d4208 578:00f228b57840
106 if self.renderer is not None: 106 if self.renderer is not None:
107 self.set_renderer_size(self.width, self.height) 107 self.set_renderer_size(self.width, self.height)
108 self.renderer.start(self.common) 108 self.renderer.start(self.common)
109 109
110 110
111 cdef bint update(self) except *: 111 cpdef bint update(self) except? False:
112 cdef long keystate 112 cdef long keystate
113 113
114 if self.background is not None: 114 if self.background is not None:
115 self.background.update(self.game.frame) 115 self.background.update(self.game.frame)
116 for event in sdl.poll_events(): 116 for event in sdl.poll_events():