diff options
Diffstat (limited to 'titlestate.cpp')
-rw-r--r-- | titlestate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/titlestate.cpp b/titlestate.cpp index 980e3b6..ae18c48 100644 --- a/titlestate.cpp +++ b/titlestate.cpp | |||
@@ -10,15 +10,15 @@ TitleState::TitleState() | |||
10 | SDL_WM_SetCaption("Maze Of Life", NULL); | 10 | SDL_WM_SetCaption("Maze Of Life", NULL); |
11 | } | 11 | } |
12 | 12 | ||
13 | void TitleState::input(SDLKey key) | 13 | void TitleState::input(SDL_keysym key) |
14 | { | 14 | { |
15 | if ((key == SDLK_UP) && (selection != 0)) | 15 | if ((key.sym == SDLK_UP) && (selection != 0)) |
16 | { | 16 | { |
17 | selection--; | 17 | selection--; |
18 | } else if ((key == SDLK_DOWN) && (selection != 3)) | 18 | } else if ((key.sym == SDLK_DOWN) && (selection != 3)) |
19 | { | 19 | { |
20 | selection++; | 20 | selection++; |
21 | } else if (key == SDLK_RETURN) | 21 | } else if (key.sym == SDLK_RETURN) |
22 | { | 22 | { |
23 | switch (selection) | 23 | switch (selection) |
24 | { | 24 | { |