static int pause_buttn(int b, int d) { if (d) { if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return pause_action(gui_token(gui_click())); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b)) return pause_action(PAUSE_CONTINUE); } return 1; }
static int pause_buttn(int b, int d) { if (d) { int active = gui_active(); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b)) return pause_action(gui_token(active), gui_value(active)); if (config_tst_d(CONFIG_JOYSTICK_BUTTON_B, b) || config_tst_d(CONFIG_JOYSTICK_BUTTON_START, b)) return pause_action(PAUSE_CONTINUE, 0); } return 1; }
void mame_frame(void) { if(!pause_action) { extern int gotFrame; while(!gotFrame) { cpu_timeslice(); } gotFrame = 0; if(time_to_reset) { cpu_post_run(); cpu_pre_run(); time_to_reset = 0; } } else { pause_action(); } }
static int pause_keybd(int c, int d) { if (d && config_tst_d(CONFIG_KEY_PAUSE, c)) return pause_action(PAUSE_CONTINUE); return 1; }
static int pause_click(int b, int d) { return d && b == SDL_BUTTON_LEFT ? pause_action(gui_token(gui_click())) : 1; }
static int pause_keybd(int c, int d) { if (d && c == KEY_EXIT) return pause_action(PAUSE_CONTINUE); return 1; }
static int pause_click(int b, int d) { return gui_click(b, d) ? pause_action(gui_token(gui_active())) : 1; }