mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
Do same in ams_mitm
This commit is contained in:
parent
defee07625
commit
56d7473451
1 changed files with 5 additions and 1 deletions
|
@ -460,7 +460,11 @@ Result Utils::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