From 38b48a86097ee51f87f6fbef683ef70e649db085 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 11 Dec 2019 20:13:02 -0500 Subject: [PATCH] Don't use hidGetHandheldMode() to determine whether to use handheld or non-handheld. Just accept input from controllers 0-7 and handheld regardless, as long as the controller is connected. Closes #108. --- nx_main/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nx_main/main.c b/nx_main/main.c index 3c53475..9d74818 100644 --- a/nx_main/main.c +++ b/nx_main/main.c @@ -196,13 +196,10 @@ int main(int argc, char **argv) u64 menuGetKeysDown(void) { u64 down = 0; - if (hidGetHandheldMode()) - down |= hidKeysDown(CONTROLLER_HANDHELD); - else { - for (u32 controller=0; controller<8; controller++) { - if (hidIsControllerConnected(controller)) down |= hidKeysDown(controller); - } + for (u32 controller=0; controller<8; controller++) { + if (hidIsControllerConnected(controller)) down |= hidKeysDown(controller); } + if (hidIsControllerConnected(CONTROLLER_HANDHELD)) down |= hidKeysDown(CONTROLLER_HANDHELD); return down; }