summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar german772021-09-20 19:44:34 -0500
committerGravatar Narr the Reg2021-11-24 20:30:23 -0600
commit967cca10ff5721cc942f557c3e0a20c07f5aa45e (patch)
tree464abf622ab259581a04ffea6ad99330cfc27eb8 /src/core/core.h
parentcore/hid: Add emulated controllers (diff)
downloadyuzu-967cca10ff5721cc942f557c3e0a20c07f5aa45e.tar.gz
yuzu-967cca10ff5721cc942f557c3e0a20c07f5aa45e.tar.xz
yuzu-967cca10ff5721cc942f557c3e0a20c07f5aa45e.zip
core: Register HID
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 01bc0a2c7..5a031efb0 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -89,6 +89,10 @@ namespace Core::Hardware {
89class InterruptManager; 89class InterruptManager;
90} 90}
91 91
92namespace Core::HID {
93class HIDCore;
94}
95
92namespace Core { 96namespace Core {
93 97
94class ARM_Interface; 98class ARM_Interface;
@@ -285,6 +289,12 @@ public:
285 /// Provides a constant reference to the kernel instance. 289 /// Provides a constant reference to the kernel instance.
286 [[nodiscard]] const Kernel::KernelCore& Kernel() const; 290 [[nodiscard]] const Kernel::KernelCore& Kernel() const;
287 291
292 /// Gets a mutable reference to the HID interface
293 [[nodiscard]] HID::HIDCore& HIDCore();
294
295 /// Gets an immutable reference to the HID interface.
296 [[nodiscard]] const HID::HIDCore& HIDCore() const;
297
288 /// Provides a reference to the internal PerfStats instance. 298 /// Provides a reference to the internal PerfStats instance.
289 [[nodiscard]] Core::PerfStats& GetPerfStats(); 299 [[nodiscard]] Core::PerfStats& GetPerfStats();
290 300