PSP2: Load/save PSP2 keybindings
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Oct 2015 20:30:36 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/platform/psp2/psp2-context.c
→
src/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); }