static int start_score(int d) { int s = (d < 0 ? GUI_SCORE_PREV(gui_score_get()) : GUI_SCORE_NEXT(gui_score_get())); return start_action(GUI_SCORE, s); }
static int goal_keybd(int c, int d) { if (d) { if (config_tst_d(CONFIG_KEY_SCORE_NEXT, c)) return goal_action(gui_score_next(gui_score_get())); if (config_tst_d(CONFIG_KEY_RESTART, c) && progress_same_avail()) return goal_action(GOAL_SAME); } return 1; }
static int done_keybd(int c, int d) { if (d) { if (c == KEY_EXIT) return done_action(GUI_BACK, 0); if (config_tst_d(CONFIG_KEY_SCORE_NEXT, c)) return done_action(GUI_SCORE, GUI_SCORE_NEXT(gui_score_get())); } return 1; }
static int goal_keybd(int c, int d) { if (d) { if (c == KEY_EXIT) return goal_action(GUI_BACK, 0); if (config_tst_d(CONFIG_KEY_SCORE_NEXT, c)) return goal_action(GUI_SCORE, GUI_SCORE_NEXT(gui_score_get())); if (config_tst_d(CONFIG_KEY_RESTART, c) && progress_same_avail()) return goal_action(GOAL_SAME, 0); } return 1; }