static void winui_output_error(void *param, const char *format, va_list argptr) { char buffer[1024]; // if we are in fullscreen mode, go to windowed mode if ((video_config.windowed == 0) && (win_window_list != NULL)) winwindow_toggle_full_screen(); vsnprintf(buffer, ARRAY_LENGTH(buffer), format, argptr); win_message_box_utf8(win_window_list ? win_window_list->hwnd : NULL, buffer, APPNAME, MB_OK); }
static void check_osd_inputs(running_machine &machine) { // check for toggling fullscreen mode if (ui_input_pressed(machine, IPT_OSD_1)) winwindow_toggle_full_screen(); // check for taking fullscreen snap if (ui_input_pressed(machine, IPT_OSD_2)) winwindow_take_snap(); // check for taking fullscreen video if (ui_input_pressed(machine, IPT_OSD_3)) winwindow_take_video(); }
void tapedialog_show(HWND wnd, int id) { extern HMODULE win_resource_module(void); if (!is_windowed()) winwindow_toggle_full_screen(); if (tape_dialogs[id].window) { SetWindowPos(tape_dialogs[id].window, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); } else { CreateDialogParam(win_resource_module(), MAKEINTRESOURCE(IDD_TAPEDIALOG), wnd, tapedialog_dlgproc, id); } }
void windows_osd_interface::check_osd_inputs() { // check for toggling fullscreen mode if (machine().ui_input().pressed(IPT_OSD_1)) winwindow_toggle_full_screen(); // check for taking fullscreen snap if (machine().ui_input().pressed(IPT_OSD_2)) winwindow_take_snap(); // check for taking fullscreen video if (machine().ui_input().pressed(IPT_OSD_3)) winwindow_take_video(); // check for taking fullscreen video if (machine().ui_input().pressed(IPT_OSD_4)) winwindow_toggle_fsfx(); }
static void check_osd_inputs(running_machine *machine) { // check for toggling fullscreen mode if (ui_input_pressed(machine, IPT_OSD_1)) winwindow_toggle_full_screen(); }
static void check_osd_inputs(void) { // increment frameskip? if (input_ui_pressed(IPT_UI_FRAMESKIP_INC)) { // if autoframeskip, disable auto and go to 0 if (video_config.autoframeskip) { video_config.autoframeskip = 0; video_config.frameskip = 0; } // wrap from maximum to auto else if (video_config.frameskip == FRAMESKIP_LEVELS - 1) { video_config.frameskip = 0; video_config.autoframeskip = 1; } // else just increment else video_config.frameskip++; // display the FPS counter for 2 seconds ui_show_fps_temp(2.0); // reset the frame counter so we'll measure the average FPS on a consistent status fps_frames_displayed = 0; } // decrement frameskip? if (input_ui_pressed(IPT_UI_FRAMESKIP_DEC)) { // if autoframeskip, disable auto and go to max if (video_config.autoframeskip) { video_config.autoframeskip = 0; video_config.frameskip = FRAMESKIP_LEVELS-1; } // wrap from 0 to auto else if (video_config.frameskip == 0) video_config.autoframeskip = 1; // else just decrement else video_config.frameskip--; // display the FPS counter for 2 seconds ui_show_fps_temp(2.0); // reset the frame counter so we'll measure the average FPS on a consistent status fps_frames_displayed = 0; } // toggle throttle? if (input_ui_pressed(IPT_UI_THROTTLE)) { video_config.throttle = !video_config.throttle; // reset the frame counter so we'll measure the average FPS on a consistent status fps_frames_displayed = 0; } // check for toggling fullscreen mode if (input_ui_pressed(IPT_OSD_1)) winwindow_toggle_full_screen(); #ifdef MESS // check for toggling menu bar if (input_ui_pressed(IPT_OSD_2)) win_toggle_menubar(); #endif // check for fast forward video_config.fastforward = input_port_type_pressed(IPT_OSD_3, 0); if (video_config.fastforward) ui_show_fps_temp(0.5); }