changeset 2252:6a07b13894f7

Fix input processing while waiting for console input in debugger
author Michael Pavone <pavone@retrodev.com>
date Tue, 29 Nov 2022 21:04:57 -0800
parents 80dde7fb445b
children fd68fe5f723e
files debug.c render.h render_sdl.h
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/debug.c	Sun Nov 27 23:39:14 2022 -0800
+++ b/debug.c	Tue Nov 29 21:04:57 2022 -0800
@@ -1055,6 +1055,7 @@
 #endif
 	do {
 		process_events();
+		render_update_display();
 #ifndef _WIN32
 		timeout.tv_sec = 0;
 		timeout.tv_usec = 16667;
@@ -1901,7 +1902,7 @@
 				printf("%s:\n", def->labels[i]);
 			}
 		}
-		
+
 		address = m68k_decode(m68k_instruction_fetch, context, &inst, address);
 		m68k_disasm_labels(&inst, disasm_buf, root->disasm);
 		printf("\t%s\n", disasm_buf);
--- a/render.h	Sun Nov 27 23:39:14 2022 -0800
+++ b/render.h	Tue Nov 29 21:04:57 2022 -0800
@@ -142,6 +142,7 @@
 uint8_t render_should_release_on_exit(void);
 void render_set_external_sync(uint8_t ext_sync_on);
 void render_reset_mappings(void);
+void render_update_display(void);
 #ifndef IS_LIB
 uint8_t render_create_thread(render_thread *thread, const char *name, render_thread_fun fun, void *data);
 #endif
--- a/render_sdl.h	Sun Nov 27 23:39:14 2022 -0800
+++ b/render_sdl.h	Tue Nov 29 21:04:57 2022 -0800
@@ -5,7 +5,6 @@
 
 SDL_Window *render_get_window(void);
 typedef void (*event_handler)(SDL_Event *);
-void render_update_display(void);
 void render_set_event_handler(event_handler handler);
 SDL_Joystick *render_get_joystick(int index);
 SDL_GameController *render_get_controller(int index);