summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-24 03:23:56 +0200
committerGitHub <noreply@github.com>2021-07-24 03:23:56 +0200
commit2656020608e32f1f0120dead047b61302bcb4461 (patch)
tree0f4b89d1e51ceb1232eec020d0fe22c7d8b7f930 /src/core/hle/service/hid/controllers/npad.h
parentMerge pull request #6686 from ReinUsesLisp/vk-optimal-copy (diff)
parenthle: service: kernel_helpers: Remove unnecessary pragma once. (diff)
downloadyuzu-2656020608e32f1f0120dead047b61302bcb4461.tar
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.gz
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.bz2
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.lz
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.xz
yuzu-2656020608e32f1f0120dead047b61302bcb4461.tar.zst
yuzu-2656020608e32f1f0120dead047b61302bcb4461.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 1409d82a2..4fcc6f93a 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -20,6 +20,10 @@ class KEvent;
class KReadableEvent;
} // namespace Kernel
+namespace Service::KernelHelpers {
+class ServiceContext;
+}
+
namespace Service::HID {
constexpr u32 NPAD_HANDHELD = 32;
@@ -27,7 +31,8 @@ constexpr u32 NPAD_UNKNOWN = 16; // TODO(ogniK): What is this?
class Controller_NPad final : public ControllerBase {
public:
- explicit Controller_NPad(Core::System& system_);
+ explicit Controller_NPad(Core::System& system_,
+ KernelHelpers::ServiceContext& service_context_);
~Controller_NPad() override;
// Called when the controller is initialized
@@ -566,6 +571,7 @@ private:
std::array<std::unique_ptr<Input::MotionDevice>, Settings::NativeMotion::NUM_MOTIONS_HID>,
10>;
+ KernelHelpers::ServiceContext& service_context;
std::mutex mutex;
ButtonArray buttons;
StickArray sticks;