I’m guessing its how I’m using it. I tried using most of the other I/O stuff and it is extremely slow. I was talking to people on #SDL irc.freenode.net and I was told to try using SDL_PollEvent. The function works fine… alone… but when I use SDL_BlitSurface and SDL_UpdateRect for some reason it stops working. Does SDL_PollEvent need to be looping in its own process or something? Why doesn’t this code below work? Does anyone see a problem? Any help would be really appreciated. Here is a snippet of my code:
while(1) {
SDL_PollEvent(&event);
c = sdl_getchar(&event);
printf("%c", c);
SDL_BlitSurface((*txte->crnt), NULL, screen, &txte->rct);
SDL_UpdateRect(screen, 0, 0, 0, 0);
}
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the “Signing Bonus” Sweepstakes