[SDL] Strangle problem using keys

ALTAIR - altairdiv at hotmail.com
Tue Nov 1 02:37:51 PST 2005

Uint8 *keys;

if (keys[SDLK_UP]== 1) { move_up(); }
if (keys[SDLK_DOWN]== 1) { move_down(); }

Is this correct?. I am using SDL-1.2.8 (the stable version when all was 
installed). No errors when I compile on my Linux, but the key are not 

I am searching in some games of libsdl.org and in all cases, no errors when 
compiling but the keys are not detected?.

Any idea?  :?

More information about the SDL mailing list