[SDL] Keyboard movement: Can't use two keys at once?
DARKGuy .
dark.guy.2008 at gmail.com
Thu Sep 14 09:58:31 PDT 2006
I think it would be something like...
Uint8 *keystate = NULL;
switch (keystate = SDL_GetKeyState(NULL)){
case SDLK_UP:
move_up=true;
break;
case SDLK_DOWN:
move_down=true;
break;
}
I'm not at home, but that should do it I guess.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060914/eb9ae8a9/attachment.htm
More information about the SDL
mailing list