all repos — mgba @ 036784e49f7af83f06974bcb06ad4ce9f605778b

mGBA Game Boy Advance Emulator

PSP2: Triangle to exit (temporary until a menu is created)
Jeffrey Pfau jeffrey@endrift.com
Fri, 24 Jul 2015 22:52:08 -0700
commit

036784e49f7af83f06974bcb06ad4ce9f605778b

parent

96add00a5b5cacc9d3c4724ba12476cc3e45163d

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/psp2/main.csrc/platform/psp2/main.c

@@ -75,6 +75,11 @@

if (frameCounter != gba->video.frameCounter) { SceCtrlData pad; sceCtrlPeekBufferPositive(0, &pad, 1); + if (pad.buttons & PSP2_CTRL_TRIANGLE) { + running = false; + break; + } + activeKeys = 0; if (pad.buttons & PSP2_CTRL_CROSS) { activeKeys |= 1 << GBA_KEY_A;