comparison nuklear_ui/blastem_nuklear.c @ 2162:1270fe86eb89

Add Quick Load binding
author Michael Pavone <pavone@retrodev.com>
date Thu, 09 Jun 2022 09:35:38 -0700
parents 237068a25523
children ee6d30c56eeb
comparison
equal deleted inserted replaced
2161:6a954675d634 2162:1270fe86eb89
463 return name; 463 return name;
464 } 464 }
465 465
466 void view_key_bindings(struct nk_context *context) 466 void view_key_bindings(struct nk_context *context)
467 { 467 {
468 const char *controller1_binds[] = { 468 static const char *controller1_binds[] = {
469 "gamepads.1.up", "gamepads.1.down", "gamepads.1.left", "gamepads.1.right", 469 "gamepads.1.up", "gamepads.1.down", "gamepads.1.left", "gamepads.1.right",
470 "gamepads.1.a", "gamepads.1.b", "gamepads.1.c", 470 "gamepads.1.a", "gamepads.1.b", "gamepads.1.c",
471 "gamepads.1.x", "gamepads.1.y", "gamepads.1.z", 471 "gamepads.1.x", "gamepads.1.y", "gamepads.1.z",
472 "gamepads.1.start", "gamepads.1.mode" 472 "gamepads.1.start", "gamepads.1.mode"
473 }; 473 };
474 const char *controller2_binds[] = { 474 static const char *controller2_binds[] = {
475 "gamepads.2.up", "gamepads.2.down", "gamepads.2.left", "gamepads.2.right", 475 "gamepads.2.up", "gamepads.2.down", "gamepads.2.left", "gamepads.2.right",
476 "gamepads.2.a", "gamepads.2.b", "gamepads.2.c", 476 "gamepads.2.a", "gamepads.2.b", "gamepads.2.c",
477 "gamepads.2.x", "gamepads.2.y", "gamepads.2.z", 477 "gamepads.2.x", "gamepads.2.y", "gamepads.2.z",
478 "gamepads.2.start", "gamepads.2.mode" 478 "gamepads.2.start", "gamepads.2.mode"
479 }; 479 };
480 const char *general_binds[] = { 480 static const char *general_binds[] = {
481 "ui.exit", "ui.save_state", "ui.toggle_fullscreen", "ui.soft_reset", "ui.reload", 481 "ui.exit", "ui.save_state", "ui.load_state", "ui.toggle_fullscreen", "ui.soft_reset", "ui.reload",
482 "ui.screenshot", "ui.vgm_log", "ui.sms_pause", "ui.toggle_keyboard_cpatured", "ui.release_mouse" 482 "ui.screenshot", "ui.vgm_log", "ui.sms_pause", "ui.toggle_keyboard_captured", "ui.release_mouse"
483 }; 483 };
484 const char *general_names[] = { 484 static const char *general_names[] = {
485 "Show Menu", "Quick Save", "Toggle Fullscreen", "Soft Reset", "Reload Media", 485 "Show Menu", "Quick Save", "Quick Load", "Toggle Fullscreen", "Soft Reset", "Reload Media",
486 "Internal Screenshot", "Toggle VGM Log", "SMS Pause", "Capture Keyboard", "Release Mouse" 486 "Internal Screenshot", "Toggle VGM Log", "SMS Pause", "Capture Keyboard", "Release Mouse"
487 }; 487 };
488 const char *speed_binds[] = { 488 static const char *speed_binds[] = {
489 "ui.next_speed", "ui.prev_speed", 489 "ui.next_speed", "ui.prev_speed",
490 "ui.set_speed.0", "ui.set_speed.1", "ui.set_speed.2" ,"ui.set_speed.3", "ui.set_speed.4", 490 "ui.set_speed.0", "ui.set_speed.1", "ui.set_speed.2" ,"ui.set_speed.3", "ui.set_speed.4",
491 "ui.set_speed.5", "ui.set_speed.6", "ui.set_speed.7" ,"ui.set_speed.8", "ui.set_speed.9", 491 "ui.set_speed.5", "ui.set_speed.6", "ui.set_speed.7" ,"ui.set_speed.8", "ui.set_speed.9",
492 }; 492 };
493 const char *speed_names[] = { 493 static const char *speed_names[] = {
494 "Next", "Previous", 494 "Next", "Previous",
495 "Default Speed", "Set Speed 1", "Set Speed 2", "Set Speed 3", "Set Speed 4", 495 "Default Speed", "Set Speed 1", "Set Speed 2", "Set Speed 3", "Set Speed 4",
496 "Set Speed 5", "Set Speed 6", "Set Speed 7", "Set Speed 8", "Set Speed 9" 496 "Set Speed 5", "Set Speed 6", "Set Speed 7", "Set Speed 8", "Set Speed 9"
497 }; 497 };
498 const char *debug_binds[] = { 498 static const char *debug_binds[] = {
499 "ui.enter_debugger", "ui.plane_debug", "ui.vram_debug", "ui.cram_debug", 499 "ui.enter_debugger", "ui.plane_debug", "ui.vram_debug", "ui.cram_debug",
500 "ui.compositing_debug", "ui.vdp_debug_mode" 500 "ui.compositing_debug", "ui.vdp_debug_mode"
501 }; 501 };
502 const char *debug_names[] = { 502 const char *debug_names[] = {
503 "CPU Debugger", "Plane Debugger", "VRAM Debugger", "CRAM Debugger", 503 "CPU Debugger", "Plane Debugger", "VRAM Debugger", "CRAM Debugger",
631 conf_names = tern_insert_ptr(conf_names, "ui.enter_debugger", "Enter CPU Debugger"); 631 conf_names = tern_insert_ptr(conf_names, "ui.enter_debugger", "Enter CPU Debugger");
632 conf_names = tern_insert_ptr(conf_names, "ui.screenshot", "Take Screenshot"); 632 conf_names = tern_insert_ptr(conf_names, "ui.screenshot", "Take Screenshot");
633 conf_names = tern_insert_ptr(conf_names, "ui.vgm_log", "Toggle VGM Log"); 633 conf_names = tern_insert_ptr(conf_names, "ui.vgm_log", "Toggle VGM Log");
634 conf_names = tern_insert_ptr(conf_names, "ui.exit", "Show Menu"); 634 conf_names = tern_insert_ptr(conf_names, "ui.exit", "Show Menu");
635 conf_names = tern_insert_ptr(conf_names, "ui.save_state", "Quick Save"); 635 conf_names = tern_insert_ptr(conf_names, "ui.save_state", "Quick Save");
636 conf_names = tern_insert_ptr(conf_names, "ui.load_state", "Quick Load");
636 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.0", "Set Speed 0"); 637 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.0", "Set Speed 0");
637 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.1", "Set Speed 1"); 638 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.1", "Set Speed 1");
638 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.2", "Set Speed 2"); 639 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.2", "Set Speed 2");
639 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.3", "Set Speed 3"); 640 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.3", "Set Speed 3");
640 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.4", "Set Speed 4"); 641 conf_names = tern_insert_ptr(conf_names, "ui.set_speed.4", "Set Speed 4");
694 "ui.reload", 695 "ui.reload",
695 "ui.sms_pause" 696 "ui.sms_pause"
696 }; 697 };
697 static const char *emu_control[] = { 698 static const char *emu_control[] = {
698 "ui.save_state", 699 "ui.save_state",
700 "ui.load_state",
699 "ui.exit", 701 "ui.exit",
700 "ui.toggle_fullscreen", 702 "ui.toggle_fullscreen",
701 "ui.screenshot", 703 "ui.screenshot",
702 "ui.release_mouse", 704 "ui.release_mouse",
703 "ui.toggle_keyboard_captured" 705 "ui.toggle_keyboard_captured"