static int title_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return title_action(gui_token(gui_click())); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b)) return title_action(TITLE_EXIT); } return 1; }
static int title_keybd(int c, int d) { if (d) { if (c == KEY_EXIT) return title_action(GUI_BACK, 0); if (c >= ' ') return title_action(GUI_CHAR, c); } return 1; }
static int title_buttn(int b, int d) { if (d) { int active = gui_active(); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return title_action(gui_token(active), gui_value(active)); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b)) return title_action(GUI_BACK, 0); } return 1; }
static int title_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return title_action(gui_token(gui_active())); //senquack - made it so pressing B on main menu doesn't exit the program #ifndef GCWZERO if (config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b)) return title_action(TITLE_EXIT); #endif //GCWZERO } return 1; }
static int title_keybd(int c, int d) { if (d) return title_action(GUI_CHAR, c); else return 1; }
static int title_click(int b, int d) { return d && b == SDL_BUTTON_LEFT ? title_action(gui_token(gui_click())) : 1; }
static int title_click(int b, int d) { return gui_click(b, d) ? title_action(gui_token(gui_active())) : 1; }
static int title_click(int b, int d) { if (d && b < 0) return title_action(gui_token(gui_click())); return 1; }