diff options
Diffstat (limited to 'htpstate.cpp')
-rw-r--r-- | htpstate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/htpstate.cpp b/htpstate.cpp index 711dca4..da4b6a2 100644 --- a/htpstate.cpp +++ b/htpstate.cpp | |||
@@ -12,15 +12,15 @@ HowToPlayState::HowToPlayState() | |||
12 | SDL_WM_SetCaption("Maze Of Life - How To Play", NULL); | 12 | SDL_WM_SetCaption("Maze Of Life - How To Play", NULL); |
13 | } | 13 | } |
14 | 14 | ||
15 | void HowToPlayState::input(SDLKey key) | 15 | void HowToPlayState::input(SDL_keysym key) |
16 | { | 16 | { |
17 | if ((key == SDLK_LEFT) && (selection != 0)) | 17 | if ((key.sym == SDLK_LEFT) && (selection != 0)) |
18 | { | 18 | { |
19 | selection--; | 19 | selection--; |
20 | } else if ((key == SDLK_RIGHT) && (selection != 1)) | 20 | } else if ((key.sym == SDLK_RIGHT) && (selection != 1)) |
21 | { | 21 | { |
22 | selection++; | 22 | selection++; |
23 | } else if (key == SDLK_RETURN) | 23 | } else if (key.sym == SDLK_RETURN) |
24 | { | 24 | { |
25 | switch (selection) | 25 | switch (selection) |
26 | { | 26 | { |