Don't ignore power button held events.

This commit is contained in:
profi200 2020-07-02 23:28:09 +02:00
parent 6c4eb107a6
commit e34c042abe
No known key found for this signature in database
GPG Key ID: 17B42AE5911139F3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();