From 822a7f848c7f86e6bd564dd90128a5bf168ba4c6 Mon Sep 17 00:00:00 2001 From: IanSB Date: Mon, 6 Jan 2020 23:06:10 +0000 Subject: [PATCH] Add up/down screencap to info menus --- src/osd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/osd.c b/src/osd.c index 300d37b0..f78bfca0 100644 --- a/src/osd.c +++ b/src/osd.c @@ -3132,6 +3132,21 @@ int osd_key(int key) { osd_state = MENU; osd_clear_no_palette(); redraw_menu(); + } else if (key == key_menu_up) { + if (last_up_down_key == key_menu_down && get_key_down_duration(last_up_down_key) != 0) { + capture_screenshot(capinfo, profile_names[get_feature(F_PROFILE)]); + delay_in_arm_cycles(1500000000); + redraw_menu(); + } + + last_up_down_key = key; + } else if (key == key_menu_down) { + if (last_up_down_key == key_menu_up && get_key_down_duration(last_up_down_key) != 0) { + capture_screenshot(capinfo, profile_names[get_feature(F_PROFILE)]); + delay_in_arm_cycles(1500000000); + redraw_menu(); + } + last_up_down_key = key; } break;