Problems with SDL_GetKeyState

hi all,
i hope someone can help me with a problem with SDL_GetKeyState.
I use a small routine like this:

keys = SDL_GetKeyState(NULL);
if(keys[SDLK_SPACE])
{
if(!jump)
{
jump=true;
jump_idx = 0;
}
}
if(keys[SDLK_UP])
{
map_yoff-=inc;
}
if(keys[SDLK_DOWN])
{
map_yoff+=inc;
}
if(keys[SDLK_RIGHT])
{
map_xoff+=inc;
}
if(keys[SDLK_LEFT])
{
map_xoff-=inc;
}

UP,DOWN,RIGHT,LEFT,SPACE and all Combinations are recognized - except
UP+LEFT+SPACE - it doesn’t seem to work. I can’t imagine what’s the different
with this combination - is this a sdl problem, or are there better
ways to check key-combinations ?

system is win2k + SDL-1.2.7

thanks in advance,
–hendrik

it’s might be a hardware limitation actualy, check this out:

http://www.sjbaker.org/steve/omniv/keyboards_are_evil.html> ----- Original Message -----

From: hendrik.huettemann@t-online.de (Hendrik)
To:
Sent: Wednesday, May 19, 2004 1:40 PM
Subject: [SDL] problems with SDL_GetKeyState

hi all,
i hope someone can help me with a problem with SDL_GetKeyState.
I use a small routine like this:

keys = SDL_GetKeyState(NULL);
if(keys[SDLK_SPACE])
{
if(!jump)
{
jump=true;
jump_idx = 0;
}
}
if(keys[SDLK_UP])
{
map_yoff-=inc;
}
if(keys[SDLK_DOWN])
{
map_yoff+=inc;
}
if(keys[SDLK_RIGHT])
{
map_xoff+=inc;
}
if(keys[SDLK_LEFT])
{
map_xoff-=inc;
}

UP,DOWN,RIGHT,LEFT,SPACE and all Combinations are recognized - except
UP+LEFT+SPACE - it doesn’t seem to work. I can’t imagine what’s the
different
with this combination - is this a sdl problem, or are there better
ways to check key-combinations ?

system is win2k + SDL-1.2.7

thanks in advance,
–hendrik


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl