ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.196 by root, Sun Jul 15 21:02:20 2007 UTC vs.
Revision 1.198 by root, Sun Jul 15 21:42:02 2007 UTC

663SDL_GL_SwapBuffers () 663SDL_GL_SwapBuffers ()
664 664
665char * 665char *
666SDL_GetKeyName (int sym) 666SDL_GetKeyName (int sym)
667 667
668int
669SDL_GetAppState ()
670
668void 671void
669SDL_PollEvent () 672poll_events ()
670 PPCODE: 673 PPCODE:
671{ 674{
672 SDL_Event ev; 675 SDL_Event ev;
673 676
674 while (SDL_PollEvent (&ev)) 677 SDL_PumpEvents ();
678 while (SDL_PeepEvents (&ev, 1, SDL_GETEVENT, SDL_ALLEVENTS) > 0)
675 { 679 {
676 HV *hv = newHV (); 680 HV *hv = newHV ();
677 hv_store (hv, "type", 4, newSViv (ev.type), 0); 681 hv_store (hv, "type", 4, newSViv (ev.type), 0);
678 682
679 switch (ev.type) 683 switch (ev.type)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines