Simon

Untitled

Jan 15th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. int SDLPoll(SDL_Event * event)
  2. {
  3.     event->type = 0;
  4.     while (SDL_PollEvent(event))
  5.     {
  6.         switch (event->type)
  7.         {
  8.             case SDL_QUIT:
  9.                 return 1;
  10.         }
  11.     }
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment