mirror of https://github.com/mgba-emu/mgba.git
PSP2: Load/save PSP2 keybindings
This commit is contained in:
parent
7ce34411bb
commit
6a433d63f6
|
@ -158,6 +158,7 @@ void GBAPSP2Setup(struct GBAGUIRunner* runner) {
|
||||||
GBAInputBindAxis(&runner->context.inputMap, PSP2_INPUT, 0, &desc);
|
GBAInputBindAxis(&runner->context.inputMap, PSP2_INPUT, 0, &desc);
|
||||||
desc = (struct GBAAxis) { GBA_KEY_RIGHT, GBA_KEY_LEFT, 192, 64 };
|
desc = (struct GBAAxis) { GBA_KEY_RIGHT, GBA_KEY_LEFT, 192, 64 };
|
||||||
GBAInputBindAxis(&runner->context.inputMap, PSP2_INPUT, 1, &desc);
|
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);
|
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);
|
screenshot = vita2d_create_empty_texture_format(256, 256, SCE_GXM_TEXTURE_FORMAT_X8U8U8U8_1BGR);
|
||||||
|
@ -220,7 +221,7 @@ void GBAPSP2UnloadROM(struct GBAGUIRunner* runner) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBAPSP2Teardown(struct GBAGUIRunner* runner) {
|
void GBAPSP2Teardown(struct GBAGUIRunner* runner) {
|
||||||
UNUSED(runner);
|
GBAInputMapSave(&runner->context.inputMap, PSP2_INPUT, &runner->context.config);
|
||||||
vita2d_free_texture(tex);
|
vita2d_free_texture(tex);
|
||||||
vita2d_free_texture(screenshot);
|
vita2d_free_texture(screenshot);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue