Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "SDL.h"
- int main(int argc, char *argv[])
- {
- SDL_Init(SDL_INIT_VIDEO);
- SDL_Event event;
- SDL_Window *wind = SDL_CreateWindow("ee", 700, 100, 300, 300, 0);
- while (SDL_PollEvent == 1)
- SDL_PollEvent(&event);
- while (1)
- {
- SDL_PollEvent(&event);
- if (event.type == SDL_QUIT || event.key.keysym.sym == SDLK_ESCAPE)
- break;
- fprintf(stderr, "type = %dn", event.type);
- event.type = 0;
- SDL_Delay(15);
- }
- printf("%dn", SDL_GetTicks());
- SDL_Quit();
- return 0;
- }
Add Comment
Please, Sign In to add comment