summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-31 07:45:40 +0200
committerGitHub <noreply@github.com>2022-03-31 07:45:40 +0200
commitc6aa4ec68762485214a1cba56b1fc92647b8bdbf (patch)
treec8ed51ffad5434b1e10edb0837640a337c5e60aa /src/core/hle/service
parentMerge pull request #8090 from bunnei/fix-skyline (diff)
parentservice: hid: Signal event on AcquireNpadStyleSetUpdateEventHandle (diff)
downloadyuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar.gz
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar.bz2
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar.lz
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar.xz
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.tar.zst
yuzu-c6aa4ec68762485214a1cba56b1fc92647b8bdbf.zip
Diffstat (limited to 'src/core/hle/service')
-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 d9202ea6c..b2cec2253 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -878,6 +878,10 @@ void Hid::AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_HID, "called, npad_id={}, applet_resource_user_id={}, unknown={}",
parameters.npad_id, parameters.applet_resource_user_id, parameters.unknown);
+ // Games expect this event to be signaled after calling this function
+ applet_resource->GetController<Controller_NPad>(HidController::NPad)
+ .SignalStyleSetChangedEvent(parameters.npad_id);
+
IPC::ResponseBuilder rb{ctx, 2, 1};
rb.Push(ResultSuccess);
rb.PushCopyObjects(applet_resource->GetController<Controller_NPad>(HidController::NPad)