From 56d74734519b36f7439866980109a321fa7acbdc Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sun, 12 May 2019 09:04:58 -0400 Subject: [PATCH] Do same in ams_mitm --- stratosphere/ams_mitm/source/utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stratosphere/ams_mitm/source/utils.cpp b/stratosphere/ams_mitm/source/utils.cpp index 70f1a011e..b1e5ca315 100644 --- a/stratosphere/ams_mitm/source/utils.cpp +++ b/stratosphere/ams_mitm/source/utils.cpp @@ -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; }