summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/InputBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/InputBackend.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/InputBackend.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/InputBackend.h b/Source/Core/InputCommon/ControllerInterface/InputBackend.h
index 653bc16df1..80ced7e194 100644
--- a/Source/Core/InputCommon/ControllerInterface/InputBackend.h
+++ b/Source/Core/InputCommon/ControllerInterface/InputBackend.h
@@ -3,10 +3,19 @@
#pragma once
+#include <memory>
+#include <vector>
+
class ControllerInterface;
namespace ciface
{
+
+namespace Core
+{
+class Device;
+}
+
class InputBackend
{
public:
@@ -15,7 +24,9 @@ public:
virtual ~InputBackend();
virtual void PopulateDevices() = 0;
- virtual void UpdateInput();
+ // Do NOT directly add/remove devices within here,
+ // just add them to the removal list if necessary.
+ virtual void UpdateInput(std::vector<std::weak_ptr<ciface::Core::Device>>& devices_to_remove);
ControllerInterface& GetControllerInterface();