summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/controller_base.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2019-09-22 08:41:34 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2019-09-22 08:41:34 +0200
commitbd1c4ec9a008af9654385ce4f7a96b81a52c9ff6 (patch)
treeb432d1cdfe0c5d40af58717f126c91a5d7fd2ab4 /src/core/hle/service/hid/controllers/controller_base.h
parentRebase (diff)
downloadyuzu-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.h8
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