summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2019-09-21 10:43:43 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2019-09-22 08:30:29 +0200
commit28181919a60c21d9c217fd56b9994fa7778a87c4 (patch)
tree0fe18715b0937b86d5e7d7824f000ce26088b06a /src/core/hle/service/hid/hid.h
parentDeglobalize System: Friend (diff)
downloadyuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar.gz
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar.bz2
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar.lz
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar.xz
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.tar.zst
yuzu-28181919a60c21d9c217fd56b9994fa7778a87c4.zip
Diffstat (limited to 'src/core/hle/service/hid/hid.h')
-rw-r--r--src/core/hle/service/hid/hid.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h
index 2fd6d9fc7..bf8dbdc0e 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();
+ IAppletResource(Core::System& system);
~IAppletResource() override;
void ActivateController(HidController controller);
@@ -70,6 +70,7 @@ private:
Kernel::SharedPtr<Kernel::SharedMemory> shared_mem;
Core::Timing::EventType* pad_update_event;
+ Core::System& system;
std::array<std::unique_ptr<ControllerBase>, static_cast<size_t>(HidController::MaxControllers)>
controllers{};
@@ -77,7 +78,7 @@ private:
class Hid final : public ServiceFramework<Hid> {
public:
- Hid();
+ Hid(Core::System& system);
~Hid() override;
std::shared_ptr<IAppletResource> GetAppletResource();
@@ -126,12 +127,13 @@ private:
void SwapNpadAssignment(Kernel::HLERequestContext& ctx);
std::shared_ptr<IAppletResource> applet_resource;
+ Core::System& system;
};
/// Reload input devices. Used when input configuration changed
void ReloadInputDevices();
/// Registers all HID services with the specified service manager.
-void InstallInterfaces(SM::ServiceManager& service_manager);
+void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
} // namespace Service::HID