all repos — mgba @ 6a433d63f67508418d41a2f8f417db09212449c4

mGBA Game Boy Advance Emulator

PSP2: Load/save PSP2 keybindings
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Oct 2015 20:30:36 -0700
commit

6a433d63f67508418d41a2f8f417db09212449c4

parent

7ce34411bbb2e599fff39ac8df29acb15b4dae15

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -158,6 +158,7 @@ struct GBAAxis desc = { GBA_KEY_DOWN, GBA_KEY_UP, 192, 64 };

GBAInputBindAxis(&runner->context.inputMap, PSP2_INPUT, 0, &desc); desc = (struct GBAAxis) { GBA_KEY_RIGHT, GBA_KEY_LEFT, 192, 64 }; GBAInputBindAxis(&runner->context.inputMap, PSP2_INPUT, 1, &desc); + GBAInputMapLoad(&runner->context.inputMap, PSP2_INPUT, &runner->context.config); tex = vita2d_create_empty_texture_format(256, 256, SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR); screenshot = vita2d_create_empty_texture_format(256, 256, SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR);

@@ -220,7 +221,7 @@ scePowerSetArmClockFrequency(80);

} void GBAPSP2Teardown(struct GBAGUIRunner* runner) { - UNUSED(runner); + GBAInputMapSave(&runner->context.inputMap, PSP2_INPUT, &runner->context.config); vita2d_free_texture(tex); vita2d_free_texture(screenshot); }