Hello there. My current game project will be done is SDL using MS Visual C++ 6.0. I am integrating ASM into some of the code for faster speed. Anyhow, I was wondering if SDL can handle more than one key being pressed at a time. I was going to make the game a 2-player game, so I would like to know. If so, can I just do this:
or does the second one need to be an "else if"?Code:if (event.key.keysym.sym == SDLK_LEFT) { // Move player 1 // } if (event.key.keysym.sym == SDLK_W) { // Move player 2 // }



LinkBack URL
About LinkBacks


