Don't ignore power button held events.
This commit is contained in:
parent
6c4eb107a6
commit
e34c042abe
|
@ -126,7 +126,7 @@ Result browseFiles(const char *const basePath, char selected[512])
|
|||
GFX_waitForVBlank0();
|
||||
|
||||
hidScanInput();
|
||||
if(hidGetExtraKeys(0) & KEY_POWER) goto end;
|
||||
if(hidGetExtraKeys(0) & (KEY_POWER_HELD | KEY_POWER)) goto end;
|
||||
kDown = hidKeysDown();
|
||||
} while(kDown == 0);
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ int main(void)
|
|||
do
|
||||
{
|
||||
hidScanInput();
|
||||
if(hidGetExtraKeys(KEY_POWER) & KEY_POWER) break;
|
||||
if(hidGetExtraKeys(0) & (KEY_POWER_HELD | KEY_POWER)) break;
|
||||
|
||||
LGY_handleEvents();
|
||||
|
||||
|
|
Loading…
Reference in New Issue