25 SDL_Init(SDL_INIT_VIDEO);
26 CVideo video( 640, 480, 16, 0 );
28 printf(
"press enter (escape exits)...\n" );
30 if( key[KEY_RETURN] != 0 )
31 printf(
"key(ENTER) pressed\n" );
32 if( key[SDLK_ESCAPE] != 0 )
Class that keeps track of all the keys on the keyboard.