Problem with keypresses

jdnoth wrote:

I’m trying to make a program that brings up a pictures in relation to
certain keypresses. It isn’t working, probably because of some nub
mistake. Help would be appreciated. Sorry if this isn’t the right place to
ask.

keypress.h
http://pastebin.com/m2286b0a5
keypress.cpp
http://pastebin.com/m46a0aea2

case SDLK_UP: apply_surface(50, 50, up, background);
SDL_Flip(screen); break;
case SDLK_DOWN: apply_surface(50, 50, down, background);
SDL_Flip(screen); break;
case SDLK_LEFT: apply_surface(50, 50, left, background);
SDL_Flip(screen); break;
case SDLK_RIGHT: apply_surface(50, 50, right, background);
SDL_Flip(screen); break;
Here. Do not blit the images to the background. still blit them to the
screen

apply_surface(50, 50, up, screen);–
View this message in context: http://www.nabble.com/Problem-with-keypresses.-tp24469288p24535067.html
Sent from the SDL mailing list archive at Nabble.com.