PSP2: Triangle to exit (temporary until a menu is created)

This commit is contained in:
Jeffrey Pfau 2015-07-24 22:52:08 -07:00
parent 96add00a5b
commit 036784e49f
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ int main() {
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;