src/osd/sdl/video.c
| r2749 | r2750 | |
| 95 | 95 | static void init_monitors(void); |
| 96 | 96 | static sdl_monitor_info *pick_monitor(int index); |
| 97 | 97 | |
| 98 | | static void check_osd_inputs(void); |
| 98 | static void check_osd_inputs(running_machine *machine); |
| 99 | 99 | |
| 100 | 100 | static void extract_video_config(running_machine *machine); |
| 101 | 101 | static void load_effect_overlay(running_machine *machine, const char *filename); |
| r2749 | r2750 | |
| 356 | 356 | |
| 357 | 357 | // poll the joystick values here |
| 358 | 358 | sdlinput_poll(machine); |
| 359 | | check_osd_inputs(); |
| 359 | check_osd_inputs(machine); |
| 360 | 360 | |
| 361 | 361 | #ifdef ENABLE_DEBUGGER |
| 362 | 362 | debugwin_update_during_game(); |
| r2749 | r2750 | |
| 512 | 512 | // check_osd_inputs |
| 513 | 513 | //============================================================ |
| 514 | 514 | |
| 515 | | static void check_osd_inputs(void) |
| 515 | static void check_osd_inputs(running_machine *machine) |
| 516 | 516 | { |
| 517 | 517 | sdl_window_info *window = sdl_window_list; |
| 518 | 518 | |
| 519 | 519 | // check for toggling fullscreen mode |
| 520 | | if (input_ui_pressed(IPT_OSD_1)) |
| 520 | if (input_ui_pressed(machine, IPT_OSD_1)) |
| 521 | 521 | sdlwindow_toggle_full_screen(window); |
| 522 | 522 | |
| 523 | | if (input_ui_pressed(IPT_OSD_2)) |
| 523 | if (input_ui_pressed(machine, IPT_OSD_2)) |
| 524 | 524 | { |
| 525 | 525 | video_config.fullstretch = !video_config.fullstretch; |
| 526 | 526 | ui_popup_time(1, "Uneven stretch %s", video_config.fullstretch? "enabled":"disabled"); |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | | if (input_ui_pressed(IPT_OSD_4)) |
| 529 | if (input_ui_pressed(machine, IPT_OSD_4)) |
| 530 | 530 | { |
| 531 | 531 | video_config.keepaspect = !video_config.keepaspect; |
| 532 | 532 | ui_popup_time(1, "Keepaspect %s", video_config.keepaspect? "enabled":"disabled"); |
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | #if USE_OPENGL |
| 536 | | if (input_ui_pressed(IPT_OSD_5)) |
| 536 | if (input_ui_pressed(machine, IPT_OSD_5)) |
| 537 | 537 | { |
| 538 | 538 | video_config.filter = !video_config.filter; |
| 539 | 539 | ui_popup_time(1, "Filter %s", video_config.filter? "enabled":"disabled"); |
| 540 | 540 | } |
| 541 | 541 | #endif |
| 542 | 542 | |
| 543 | | if (input_ui_pressed(IPT_OSD_6)) |
| 543 | if (input_ui_pressed(machine, IPT_OSD_6)) |
| 544 | 544 | sdlwindow_modify_prescale(window, -1); |
| 545 | 545 | |
| 546 | | if (input_ui_pressed(IPT_OSD_7)) |
| 546 | if (input_ui_pressed(machine, IPT_OSD_7)) |
| 547 | 547 | sdlwindow_modify_prescale(window, 1); |
| 548 | 548 | |
| 549 | | if (input_ui_pressed(IPT_OSD_8)) |
| 549 | if (input_ui_pressed(machine, IPT_OSD_8)) |
| 550 | 550 | sdlwindow_modify_effect(window, -1); |
| 551 | 551 | |
| 552 | | if (input_ui_pressed(IPT_OSD_9)) |
| 552 | if (input_ui_pressed(machine, IPT_OSD_9)) |
| 553 | 553 | sdlwindow_modify_effect(window, 1); |
| 554 | 554 | |
| 555 | | if (input_ui_pressed(IPT_OSD_10)) |
| 555 | if (input_ui_pressed(machine, IPT_OSD_10)) |
| 556 | 556 | sdlwindow_toggle_draw(window); |
| 557 | 557 | } |
| 558 | 558 | |