mirror of https://github.com/mgba-emu/mgba.git
PSP2: Triangle to exit (temporary until a menu is created)
This commit is contained in:
parent
96add00a5b
commit
036784e49f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue