From c027f1b9cd6c9deb60931a7f9f75bb4ee130291b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 18 Oct 2009 15:24:07 -0400 Subject: Added local highscore list You can now view and add to a local highscore list. A change to State was necessary due to how the user's name would be entered into the highscore list and thus all states have been modified. Refs #104 --- titlestate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'titlestate.cpp') diff --git a/titlestate.cpp b/titlestate.cpp index 980e3b6..ae18c48 100644 --- a/titlestate.cpp +++ b/titlestate.cpp @@ -10,15 +10,15 @@ TitleState::TitleState() SDL_WM_SetCaption("Maze Of Life", NULL); } -void TitleState::input(SDLKey key) +void TitleState::input(SDL_keysym key) { - if ((key == SDLK_UP) && (selection != 0)) + if ((key.sym == SDLK_UP) && (selection != 0)) { selection--; - } else if ((key == SDLK_DOWN) && (selection != 3)) + } else if ((key.sym == SDLK_DOWN) && (selection != 3)) { selection++; - } else if (key == SDLK_RETURN) + } else if (key.sym == SDLK_RETURN) { switch (selection) { -- cgit 1.4.1