summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/InputBackend.h
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-11-03 04:42:05 +0100
committerGitHub <noreply@github.com>2022-11-03 04:42:05 +0100
commit1d07332657719a1a86290bf4e138ac7972ad2409 (patch)
treef5470086989a70aa0d5f82905ceec2b489999ccd /Source/Core/InputCommon/ControllerInterface/InputBackend.h
parent0210d115c22a1c5745c76eaefe38b5d0af3247f9 (diff)
parent168a49c87ffbd05512c20db9735b3cb92afac93b (diff)
Merge pull request #11193 from jordan-woyak/ciface-input-backend-interface
ControllerInterface: Add InputBackend interface.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/InputBackend.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/InputBackend.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/InputBackend.h b/Source/Core/InputCommon/ControllerInterface/InputBackend.h
new file mode 100644
index 0000000000..653bc16df1
--- /dev/null
+++ b/Source/Core/InputCommon/ControllerInterface/InputBackend.h
@@ -0,0 +1,26 @@
+// Copyright 2022 Dolphin Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+class ControllerInterface;
+
+namespace ciface
+{
+class InputBackend
+{
+public:
+ InputBackend(ControllerInterface* controller_interface);
+
+ virtual ~InputBackend();
+
+ virtual void PopulateDevices() = 0;
+ virtual void UpdateInput();
+
+ ControllerInterface& GetControllerInterface();
+
+private:
+ ControllerInterface& m_controller_interface;
+};
+
+} // namespace ciface