summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-06 06:15:38 +0200
committerGitHub <noreply@github.com>2022-04-06 06:15:38 +0200
commit37199c5f90728f21f5475e409e2ec93901f2f73b (patch)
treec85bff4a7052d5d90ab09fe7e0bb564bb4a00269
parentMerge pull request #8137 from bunnei/improve-nvflinger-2 (diff)
parentservice: hid: Partially revert #8123 (diff)
downloadyuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar.gz
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar.bz2
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar.lz
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar.xz
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.tar.zst
yuzu-37199c5f90728f21f5475e409e2ec93901f2f73b.zip
-rw-r--r--src/core/hle/service/hid/hid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 92e6bf889..b2cec2253 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -63,6 +63,10 @@ IAppletResource::IAppletResource(Core::System& system_,
MakeController<Controller_Gesture>(HidController::Gesture);
MakeController<Controller_ConsoleSixAxis>(HidController::ConsoleSixAxisSensor);
+ // Homebrew doesn't try to activate some controllers, so we activate them by default
+ GetController<Controller_NPad>(HidController::NPad).ActivateController();
+ GetController<Controller_Touchscreen>(HidController::Touchscreen).ActivateController();
+
GetController<Controller_Stubbed>(HidController::HomeButton).SetCommonHeaderOffset(0x4C00);
GetController<Controller_Stubbed>(HidController::SleepButton).SetCommonHeaderOffset(0x4E00);
GetController<Controller_Stubbed>(HidController::CaptureButton).SetCommonHeaderOffset(0x5000);