Mercurial > repos > blastem
diff bindings.c @ 2083:372625dd9590
Persist BRAM to file. Load BIOS relative to blastem directory
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 03 Feb 2022 23:41:53 -0800 |
parents | 81df9aa2de9b |
children | 1270fe86eb89 |
line wrap: on
line diff
--- a/bindings.c Thu Feb 03 23:41:40 2022 -0800 +++ b/bindings.c Thu Feb 03 23:41:53 2022 -0800 @@ -422,13 +422,13 @@ } #endif break; - case UI_PLANE_DEBUG: - case UI_VRAM_DEBUG: + case UI_PLANE_DEBUG: + case UI_VRAM_DEBUG: case UI_CRAM_DEBUG: case UI_COMPOSITE_DEBUG: if (allow_content_binds) { vdp_context *vdp = NULL; - if (current_system->type == SYSTEM_GENESIS) { + if (current_system->type == SYSTEM_GENESIS || current_system->type == SYSTEM_SEGACD) { genesis_context *gen = (genesis_context *)current_system; vdp = gen->vdp; } else if (current_system->type == SYSTEM_SMS) { @@ -533,7 +533,7 @@ float scale_y = (render_emulated_height() * 2.0f) / ((float)render_height()); int32_t adj_x = x * scale_x + 2 * render_overscan_left() - 2 * BORDER_LEFT; int32_t adj_y = y * scale_y + 2 * render_overscan_top() - 4; - + current_system->mouse_motion_absolute(current_system, target_mouse, adj_x, adj_y); } break; @@ -1090,11 +1090,11 @@ tern_node *padbuttons = get_pad_buttons(); tern_node *mousebuttons = get_mouse_buttons(); - + tern_node * keys = tern_find_path(config, "bindings\0keys\0", TVAL_NODE).ptrval; process_keys(keys, special, padbuttons, mousebuttons, NULL); tern_free(special); - + memset(mice, 0, sizeof(mice)); tern_node * mice = tern_find_path(config, "bindings\0mice\0", TVAL_NODE).ptrval; if (mice) {