Mercurial > repos > blastem
comparison bindings.c @ 1643:6909c5d0bbb5
Removed old VDP debug functionality
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Nov 2018 19:26:57 -0800 |
parents | bc9bb4e5856f |
children | 12d0c7c4ad80 |
comparison
equal
deleted
inserted
replaced
1642:c6b2c0f8cc61 | 1643:6909c5d0bbb5 |
---|---|
21 BIND_MOUSE | 21 BIND_MOUSE |
22 }; | 22 }; |
23 | 23 |
24 typedef enum { | 24 typedef enum { |
25 UI_DEBUG_MODE_INC, | 25 UI_DEBUG_MODE_INC, |
26 UI_DEBUG_PAL_INC, | |
27 UI_ENTER_DEBUGGER, | 26 UI_ENTER_DEBUGGER, |
28 UI_SAVE_STATE, | 27 UI_SAVE_STATE, |
29 UI_SET_SPEED, | 28 UI_SET_SPEED, |
30 UI_NEXT_SPEED, | 29 UI_NEXT_SPEED, |
31 UI_PREV_SPEED, | 30 UI_PREV_SPEED, |
240 } | 239 } |
241 keybinding * binding = mice[mouse].buttons + button - 1; | 240 keybinding * binding = mice[mouse].buttons + button - 1; |
242 handle_binding_down(binding); | 241 handle_binding_down(binding); |
243 } | 242 } |
244 | 243 |
245 static uint8_t ui_debug_mode = 0; | |
246 static uint8_t ui_debug_pal = 0; | |
247 | |
248 static int current_speed = 0; | 244 static int current_speed = 0; |
249 static int num_speeds = 1; | 245 static int num_speeds = 1; |
250 static uint32_t * speeds = NULL; | 246 static uint32_t * speeds = NULL; |
251 | 247 |
252 static uint8_t mouse_captured; | 248 static uint8_t mouse_captured; |
272 case BIND_UI: | 268 case BIND_UI: |
273 switch (binding->subtype_a) | 269 switch (binding->subtype_a) |
274 { | 270 { |
275 case UI_DEBUG_MODE_INC: | 271 case UI_DEBUG_MODE_INC: |
276 current_system->inc_debug_mode(current_system); | 272 current_system->inc_debug_mode(current_system); |
277 break; | |
278 case UI_DEBUG_PAL_INC: | |
279 current_system->inc_debug_pal(current_system); | |
280 break; | 273 break; |
281 case UI_ENTER_DEBUGGER: | 274 case UI_ENTER_DEBUGGER: |
282 current_system->enter_debugger = 1; | 275 current_system->enter_debugger = 1; |
283 break; | 276 break; |
284 case UI_SAVE_STATE: | 277 case UI_SAVE_STATE: |
576 } | 569 } |
577 } else if(!strncmp(target, "ui.", strlen("ui."))) { | 570 } else if(!strncmp(target, "ui.", strlen("ui."))) { |
578 if (!strcmp(target + 3, "vdp_debug_mode")) { | 571 if (!strcmp(target + 3, "vdp_debug_mode")) { |
579 *subtype_a = UI_DEBUG_MODE_INC; | 572 *subtype_a = UI_DEBUG_MODE_INC; |
580 } else if(!strcmp(target + 3, "vdp_debug_pal")) { | 573 } else if(!strcmp(target + 3, "vdp_debug_pal")) { |
581 *subtype_a = UI_DEBUG_PAL_INC; | 574 //legacy binding, ignore |
575 return 0; | |
582 } else if(!strcmp(target + 3, "enter_debugger")) { | 576 } else if(!strcmp(target + 3, "enter_debugger")) { |
583 *subtype_a = UI_ENTER_DEBUGGER; | 577 *subtype_a = UI_ENTER_DEBUGGER; |
584 } else if(!strcmp(target + 3, "save_state")) { | 578 } else if(!strcmp(target + 3, "save_state")) { |
585 *subtype_a = UI_SAVE_STATE; | 579 *subtype_a = UI_SAVE_STATE; |
586 } else if(!strncmp(target + 3, "set_speed.", strlen("set_speed."))) { | 580 } else if(!strncmp(target + 3, "set_speed.", strlen("set_speed."))) { |