static int demo_del_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return demo_del_action(gui_token(gui_click())); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b)) return demo_del_action(DEMO_KEEP); } return 1; }
static int demo_del_buttn(int b, int d) { if (d) { int active = gui_active(); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return demo_del_action(gui_token(active), gui_value(active)); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b)) return demo_del_action(DEMO_KEEP, 0); } return 1; }
static int demo_del_keybd(int c, int d) { if (d) { if (c == KEY_EXIT) return demo_del_action(GUI_BACK, 0); } return 1; }