static int course_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return course_action(gui_token(gui_click())); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b)) return course_action(COURSE_BACK); } return 1; }
static int course_click(int b, int d) { return d && b == SDL_BUTTON_LEFT ? course_action(gui_token(gui_click())) : 1; }
static int course_click(int b, int d) { return gui_click(b, d) ? course_action(gui_token(gui_active())) : 1; }