mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
Do same in dmnt and reboot_to_payload
This commit is contained in:
parent
56d7473451
commit
eab2d05680
2 changed files with 12 additions and 4 deletions
|
@ -79,8 +79,12 @@ int main(int argc, char **argv)
|
|||
//Scan all the inputs. This should be done once for each frame
|
||||
hidScanInput();
|
||||
|
||||
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
|
||||
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
|
||||
u64 kDown = 0;
|
||||
|
||||
for (int controller = 0; controller < 10; controller++) {
|
||||
// hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
|
||||
kDown |= hidKeysDown((HidControllerID) controller);
|
||||
}
|
||||
|
||||
if (can_reboot && kDown & KEY_MINUS) {
|
||||
reboot_to_payload();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue