summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-04-06 05:34:56 +0200
committergerman77 <juangerman-13@hotmail.com>2022-04-06 05:35:38 +0200
commit8c089f4e2a5aef040c5636cdc6a7ede8d902775e (patch)
treec85bff4a7052d5d90ab09fe7e0bb564bb4a00269
parentMerge pull request #8137 from bunnei/improve-nvflinger-2 (diff)
downloadyuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar.gz
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar.bz2
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar.lz
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar.xz
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.tar.zst
yuzu-8c089f4e2a5aef040c5636cdc6a7ede8d902775e.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);