Guest User

Untitled

a guest
Jan 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "SDL.h"
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. SDL_Init(SDL_INIT_VIDEO);
  7. SDL_Event event;
  8. SDL_Window *wind = SDL_CreateWindow("ee", 700, 100, 300, 300, 0);
  9. while (SDL_PollEvent == 1)
  10. SDL_PollEvent(&event);
  11. while (1)
  12. {
  13. SDL_PollEvent(&event);
  14. if (event.type == SDL_QUIT || event.key.keysym.sym == SDLK_ESCAPE)
  15. break;
  16. fprintf(stderr, "type = %dn", event.type);
  17. event.type = 0;
  18. SDL_Delay(15);
  19. }
  20. printf("%dn", SDL_GetTicks());
  21. SDL_Quit();
  22. return 0;
  23. }
Add Comment
Please, Sign In to add comment