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/controllers/controller_base.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 '')
-rw-r--r-- | src/core/hle/service/hid/controllers/controller_base.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/controllers/controller_base.h b/src/core/hle/service/hid/controllers/controller_base.h index 7abe24f1d..47972f5fc 100644 --- a/src/core/hle/service/hid/controllers/controller_base.h +++ b/src/core/hle/service/hid/controllers/controller_base.h @@ -18,11 +18,11 @@ class System; namespace Service::HID { class ControllerBase { public: - ControllerBase(); + ControllerBase(Core::System& system); virtual ~ControllerBase(); // Called when the controller is initialized - virtual void OnInit(Core::System& system) = 0; + virtual void OnInit() = 0; // When the controller is released virtual void OnRelease() = 0; @@ -34,7 +34,7 @@ public: // Called when input devices should be loaded virtual void OnLoadInputDevices() = 0; - void ActivateController(Core::System& system); + void ActivateController(); void DeactivateController(); @@ -50,5 +50,7 @@ protected: s64_le entry_count; }; static_assert(sizeof(CommonHeader) == 0x20, "CommonHeader is an invalid size"); + + Core::System& system; }; } // namespace Service::HID |