diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-10-07 11:17:04 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-10-10 04:15:39 +0200 |
commit | f43815af5d59bb1b31696f317c2e2ce243445cb5 (patch) | |
tree | ae555da5a47ef99ea03b9f51b56eecb5072a16c7 /src/core/hle/service/hid/hid.cpp | |
parent | Removed unneeded forward declarations (diff) | |
download | yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar.gz yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar.bz2 yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar.lz yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar.xz yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.tar.zst yuzu-f43815af5d59bb1b31696f317c2e2ce243445cb5.zip |
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index ba4aefa6c..dfee289d2 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -411,7 +411,10 @@ private: } void DisconnectNpad(Kernel::HLERequestContext& ctx) { - applet_resource->DeactivateController(HidController::NPad); + IPC::RequestParser rp{ctx}; + auto npad_id = rp.PopRaw<u32>(); + applet_resource->GetController<Controller_NPad>(HidController::NPad) + .DisconnectNPad(npad_id); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); LOG_DEBUG(Service_HID, "called"); |