1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 13:52:21 +00:00

Allow pressing buttons on all controllers in loader (closes #541)

This commit is contained in:
leo60228 2019-05-11 14:58:46 -04:00
parent 2c3111f9c9
commit defee07625

View file

@ -36,7 +36,11 @@ Result HidManagement::GetKeysHeld(u64 *keys) {
} }
hidScanInput(); hidScanInput();
*keys = hidKeysHeld(CONTROLLER_P1_AUTO); *keys = 0;
for (int controller = 0; controller < 10; controller++) {
*keys |= hidKeysHeld((HidControllerID) controller);
}
return ResultSuccess; return ResultSuccess;
} }