X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftitle.cpp;h=13f878be3ae9b57e6fe69d69dc75eacdafaf435d;hb=256958447aec9101378c9a0afea9146e5912c5ec;hp=3d877a12744c3cf3011ca93027d087c40d5bf81e;hpb=7a28c2f5c77e6ef289ff3f4b735b8dc446a59537;p=supertux.git diff --git a/src/title.cpp b/src/title.cpp index 3d877a127..13f878be3 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -124,22 +124,18 @@ int title(void) quit = 1; } } -#ifdef JOY_YES else if (event.type == SDL_JOYAXISMOTION && event.jaxis.axis == JOY_Y) { if (event.jaxis.value > 1024) - menuaction = MN_DOWN; + menuaction = MENU_ACTION_DOWN; else if (event.jaxis.value < -1024) - menuaction = MN_UP; + menuaction = MENU_ACTION_UP; } else if (event.type == SDL_JOYBUTTONDOWN) { /* Joystick button: Continue: */ - - menuaction = MN_HIT; + menuaction = MENU_ACTION_HIT; } -#endif - } /* Draw the background: */