The reason why I didnt noticed any differences was becuase I first had this code:
keys = SDL_GetKeyState(NULL);if (event.type == SDL_KEYDOWN) { if ( keys[SDLK_LEFT] ) {xpos -= 5; } if ( keys[SDLK_RIGHT] ) {xpos += 5; } if ( keys[SDLK_DOWN] ) {ypos += 5; } if ( keys[SDLK_UP] ) {ypos -= 5; }}
And after I noticed that I forgot to remove the:
"
if ( keys[SDLK_LEFT] ) {xpos -= 5; }
if ( keys[SDLK_RIGHT] ) {xpos += 5; }
if ( keys[SDLK_DOWN] ) {ypos += 5; }
if ( keys[SDLK_UP] ) {ypos -= 5; }
"
from the PollEvent loop :D
So now it's working :P (I can now hold a button to move the object)