diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-31 07:45:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 07:45:40 +0200 |
commit | c6aa4ec68762485214a1cba56b1fc92647b8bdbf (patch) | |
tree | c8ed51ffad5434b1e10edb0837640a337c5e60aa /src/core/hle | |
parent | Merge pull request #8090 from bunnei/fix-skyline (diff) | |
parent | service: hid: Signal event on AcquireNpadStyleSetUpdateEventHandle (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 4 |
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) |