- case XK_Return:
- if (game_status==MAINMENU)
- HandleMainMenu(0,0,0,0,MB_MENU_CHOICE);
- else if (game_status==CHOOSELEVEL)
- HandleChooseLevel(0,0,0,0,MB_MENU_CHOICE);
- else if (game_status==SETUP)
- HandleSetupScreen(0,0,0,0,MB_MENU_CHOICE);
+ case KSYM_Return:
+ if (game_status == GAME_MODE_MAIN)
+ HandleMainMenu(0,0, 0,0, MB_MENU_CHOICE);
+ else if (game_status == GAME_MODE_LEVELS)
+ HandleChooseLevel(0,0, 0,0, MB_MENU_CHOICE);
+ else if (game_status == GAME_MODE_SETUP)
+ HandleSetupScreen(0,0, 0,0, MB_MENU_CHOICE);
+ else if (game_status == GAME_MODE_INFO)
+ HandleInfoScreen(0,0, 0,0, MB_MENU_CHOICE);
+ break;
+
+ case KSYM_Escape:
+ if (game_status == GAME_MODE_LEVELS)
+ HandleChooseLevel(0,0, 0,0, MB_MENU_LEAVE);
+ else if (game_status == GAME_MODE_SETUP)
+ HandleSetupScreen(0,0, 0,0, MB_MENU_LEAVE);
+ else if (game_status == GAME_MODE_INFO)
+ HandleInfoScreen(0,0, 0,0, MB_MENU_LEAVE);
+ break;
+
+ case KSYM_Page_Up:
+ if (game_status == GAME_MODE_LEVELS)
+ HandleChooseLevel(0,0, 0, -1 * SCROLL_PAGE, MB_MENU_MARK);
+ else if (game_status == GAME_MODE_SETUP)
+ HandleSetupScreen(0,0, 0, -1 * SCROLL_PAGE, MB_MENU_MARK);
+ else if (game_status == GAME_MODE_INFO)
+ HandleInfoScreen(0,0, 0, -1 * SCROLL_PAGE, MB_MENU_MARK);
+ break;
+
+ case KSYM_Page_Down:
+ if (game_status == GAME_MODE_LEVELS)
+ HandleChooseLevel(0,0, 0, +1 * SCROLL_PAGE, MB_MENU_MARK);
+ else if (game_status == GAME_MODE_SETUP)
+ HandleSetupScreen(0,0, 0, +1 * SCROLL_PAGE, MB_MENU_MARK);
+ else if (game_status == GAME_MODE_INFO)
+ HandleInfoScreen(0,0, 0, +1 * SCROLL_PAGE, MB_MENU_MARK);
+ break;
+
+#ifdef DEBUG
+ case KSYM_t:
+ DumpTape(&tape);