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.197 by root, Sun Jul 15 21:08:40 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines