[SDL] SDL_GetKeyState question

Dave dleimbac at phoenix.lhup.edu
Tue Apr 25 04:53:35 PDT 2000


So I need to call PumpEvents....  Hmmm not in the API docs....
Oh well, thanks.....

Dave

On Mon, 24 Apr 2000, Sam Lantinga wrote:

> > My code is something like this...
> 
> Try this:
> 
> Uint8 * keys;
> keys = SDL_GetKeyState(NULL);
> 
> while (keys[SDLK_ESCAPE] != SDL_PRESSED) {
> 	//do stuff;
>   SDL_PumpEvents();
>   keys = SDL_GetKeyState(NULL);	
> }
> 
> See ya!
> 	-Sam Lantinga, Lead Programmer, Loki Entertainment Software
> 




More information about the SDL mailing list