Ejemplo n.º 1
0
 def _process(self):
     printf("_flush_delay\n")
     _flush_delay()
     printf("about to call process_event\n")
     pgeif.process_event()
     printf("find out which event\n")
     if self._type == frame_event:
         cData = pgeif.get_cbuf()
         printf("cData len = %d\n", len(cData))
         self._set_colour_contents(cData, len(cData))
         fData = pgeif.get_fbuf()
         printf("fData len = %d\n", len(fData))
         self._set_frame_contents(fData, len(fData))
         draw_frame(self._cData, self._clength, self._fData, self._flength)
         pgeif.empty_fbuffer()
         pgeif.empty_cbuffer()
     elif self._type == collision_event:
         printf("collision event seen, in %f seconds\n", self.__etime)
         # pgeif.skip_until (self.__etime)
         collision(self._between())
Ejemplo n.º 2
0
 def _process (self):
     printf ("_flush_delay\n")
     _flush_delay ()
     printf ("about to call process_event\n")
     pgeif.process_event ();
     printf ("find out which event\n")
     if self._type == frame_event:
         cData = pgeif.get_cbuf ()
         printf ("cData len = %d\n", len (cData))
         self._set_colour_contents (cData, len (cData))
         fData = pgeif.get_fbuf ()
         printf ("fData len = %d\n", len (fData))
         self._set_frame_contents (fData, len (fData))
         draw_frame (self._cData, self._clength,
                     self._fData, self._flength)
         pgeif.empty_fbuffer ()
         pgeif.empty_cbuffer ()
     elif self._type == collision_event:
         printf ("collision event seen, in %f seconds\n", self.__etime)
         # pgeif.skip_until (self.__etime)
         collision (self._between ())
Ejemplo n.º 3
0
def process_event ():
    pgeif.process_event ()
Ejemplo n.º 4
0
def process_event():
    pgeif.process_event()