diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2019-09-22 08:41:34 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2019-09-22 08:41:34 +0200 |
commit | bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6 (patch) | |
tree | b432d1cdfe0c5d40af58717f126c91a5d7fd2ab4 /src/core/hle/service/hid/hid.h | |
parent | Rebase (diff) | |
download | yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar.gz yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar.bz2 yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar.lz yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar.xz yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.tar.zst yuzu-bd1c4ec9a008af9654385ce4f7a96b81a52c9ff6.zip |
Diffstat (limited to 'src/core/hle/service/hid/hid.h')
-rw-r--r-- | src/core/hle/service/hid/hid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index bf8dbdc0e..35b663679 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -42,7 +42,7 @@ enum class HidController : std::size_t { class IAppletResource final : public ServiceFramework<IAppletResource> { public: - IAppletResource(Core::System& system); + explicit IAppletResource(Core::System& system); ~IAppletResource() override; void ActivateController(HidController controller); @@ -61,7 +61,7 @@ public: private: template <typename T> void MakeController(HidController controller) { - controllers[static_cast<std::size_t>(controller)] = std::make_unique<T>(); + controllers[static_cast<std::size_t>(controller)] = std::make_unique<T>(system); } void GetSharedMemoryHandle(Kernel::HLERequestContext& ctx); @@ -78,7 +78,7 @@ private: class Hid final : public ServiceFramework<Hid> { public: - Hid(Core::System& system); + explicit Hid(Core::System& system); ~Hid() override; std::shared_ptr<IAppletResource> GetAppletResource(); |