case SDLK_DOWN:while(!SDL_KEYUP){ if(paddle1Y < screen->h-10) { paddle1Y++; }} break;
but it won't work :(
what am I doing wrong?
case SDLK_DOWN:while(!SDL_KEYUP){ if(paddle1Y < screen->h-10) { paddle1Y++; }} break;
Quote:Original post by Joshnathan
lol, I just try'd some stuff and LSHIFT and LCTRL worked :D
Quote:Original post by Joshnathan
finally made it work, but now I want to add speed. I am trying to increase the speed by hitting the shift button and decreasing speed by hitting ctrl buttun. what are the functions in SDL for that? SDLK_CTRL and SDLK_SHIFT didn't work :(