summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid_system_server.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-16 15:13:56 +0100
committerGitHub <noreply@github.com>2023-11-16 15:13:56 +0100
commit7eac28e410e5c3293125602b91d8082e2c57ade1 (patch)
treeb2a263584ca273e636ae76e9bf47b1974f4ef68e /src/core/hle/service/hid/hid_system_server.h
parentMerge pull request #12007 from german77/moar_buttons (diff)
parentservice: hid: Split hid.cpp into individual interfaces (diff)
downloadyuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar.gz
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar.bz2
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar.lz
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar.xz
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.tar.zst
yuzu-7eac28e410e5c3293125602b91d8082e2c57ade1.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hid_system_server.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid_system_server.h b/src/core/hle/service/hid/hid_system_server.h
new file mode 100644
index 000000000..d4b3910fa
--- /dev/null
+++ b/src/core/hle/service/hid/hid_system_server.h
@@ -0,0 +1,40 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include "core/hle/service/kernel_helpers.h"
+#include "core/hle/service/service.h"
+
+namespace Core {
+class System;
+}
+
+namespace Kernel {
+class KEvent;
+}
+
+namespace Service::HID {
+class ResourceManager;
+
+class IHidSystemServer final : public ServiceFramework<IHidSystemServer> {
+public:
+ explicit IHidSystemServer(Core::System& system_, std::shared_ptr<ResourceManager> resource);
+ ~IHidSystemServer() override;
+
+private:
+ void ApplyNpadSystemCommonPolicy(HLERequestContext& ctx);
+ void GetLastActiveNpad(HLERequestContext& ctx);
+ void GetUniquePadsFromNpad(HLERequestContext& ctx);
+ void AcquireJoyDetachOnBluetoothOffEventHandle(HLERequestContext& ctx);
+ void IsUsbFullKeyControllerEnabled(HLERequestContext& ctx);
+ void GetTouchScreenDefaultConfiguration(HLERequestContext& ctx);
+
+ std::shared_ptr<ResourceManager> GetResourceManager();
+
+ Kernel::KEvent* joy_detach_event;
+ KernelHelpers::ServiceContext service_context;
+ std::shared_ptr<ResourceManager> resource_manager;
+};
+
+} // namespace Service::HID