summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2022-10-22 17:10:38 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2022-11-01 21:59:08 -0500
commit2e5cd5d51970fd90e87e54d53fe904cf9d777139 (patch)
treeb585c121dc00e985a89b0b03f4fd336ed6687e4e /Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
parent44a4573303917496ee9b4107fbe41a5cad142e2d (diff)
ControllerInterface: evdev InputBackend implementation.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/evdev/evdev.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
index fd497ad8b8..ff5ab8a72a 100644
--- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
+++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
@@ -11,9 +11,9 @@
namespace ciface::evdev
{
-void Init();
-void PopulateDevices();
-void Shutdown();
+class InputBackend;
+
+std::unique_ptr<ciface::InputBackend> CreateInputBackend(ControllerInterface* controller_interface);
class evdevDevice : public Core::Device
{
@@ -75,6 +75,7 @@ public:
void UpdateInput() override;
bool IsValid() const override;
+ evdevDevice(InputBackend* input_backend);
~evdevDevice();
// Return true if node was "interesting".
@@ -97,5 +98,7 @@ private:
};
std::vector<Node> m_nodes;
+
+ InputBackend& m_input_backend;
};
} // namespace ciface::evdev