mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-25 11:00:18 +00:00
Allow pressing buttons on all controllers in loader (closes #541)
This commit is contained in:
parent
2c3111f9c9
commit
defee07625
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ Result HidManagement::GetKeysHeld(u64 *keys) {
|
|||
}
|
||||
|
||||
hidScanInput();
|
||||
*keys = hidKeysHeld(CONTROLLER_P1_AUTO);
|
||||
*keys = 0;
|
||||
|
||||
for (int controller = 0; controller < 10; controller++) {
|
||||
*keys |= hidKeysHeld((HidControllerID) controller);
|
||||
}
|
||||
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue