static int score_buttn(int b, int d) { if (d) { #ifdef GCWZERO if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b) || config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b) || config_tst_d(CONFIG_JOYSTICK_BUTTON_X, b) || config_tst_d(CONFIG_JOYSTICK_BUTTON_Y, b)) #else if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) #endif //GCWZERO { if (hole_move()) goto_state(&st_next); else //senquack - bugfix in original code: //original code had this, I think it is a bug, it should go back to the title like the mouse button does // but instead it 'freezes' on scores screen // goto_state(&st_score); goto_state(&st_title); } #ifndef GCWZERO if (config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b)) return goto_pause(&st_over); #endif //GCWZERO } return 1; }
static int score_click(int b, int d) { if (b == SDL_BUTTON_LEFT && d == 1) { if (hole_move()) return goto_state(&st_next); else return goto_state(&st_title); } return 1; }
static int score_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) { if (hole_move()) goto_state(&st_next); else goto_state(&st_score); } if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b)) return goto_pause(&st_over, 1); } return 1; }