diff bindings.c @ 2271:3ef80963c2a7

Fix stamp address mask and add WIP CD graphics debug view
author Michael Pavone <pavone@retrodev.com>
date Thu, 29 Dec 2022 15:47:19 -0800
parents 0d1d5dccdd28
children 5d3411f52d00
line wrap: on
line diff
--- a/bindings.c	Mon Dec 26 12:42:12 2022 -0800
+++ b/bindings.c	Thu Dec 29 15:47:19 2022 -0800
@@ -44,6 +44,7 @@
 	UI_CRAM_DEBUG,
 	UI_COMPOSITE_DEBUG,
 	UI_OSCILLOSCOPE_DEBUG,
+	UI_CD_GRAPHICS_DEBUG
 } ui_action;
 
 typedef struct {
@@ -434,6 +435,7 @@
 		case UI_CRAM_DEBUG:
 		case UI_COMPOSITE_DEBUG:
 		case UI_OSCILLOSCOPE_DEBUG:
+		case UI_CD_GRAPHICS_DEBUG:
 			if (allow_content_binds && current_system->toggle_debug_view) {
 				current_system->toggle_debug_view(current_system, binding->subtype_a - UI_PLANE_DEBUG + DEBUG_PLANE);
 				/*
@@ -677,6 +679,8 @@
 			*subtype_a = UI_COMPOSITE_DEBUG;
 		} else if (!strcmp(target + 3, "oscilloscope")) {
 			*subtype_a = UI_OSCILLOSCOPE_DEBUG;
+		} else if (!strcmp(target + 3, "cd_graphics_debug")) {
+			*subtype_a = UI_CD_GRAPHICS_DEBUG;
 		} else {
 			warning("Unreconized UI binding type %s\n", target);
 			return 0;