Debian Codegraph @

Source/Core/InputCommon/ControllerInterface/InputBackend.h

raw symbols SCIP
1 // Copyright 2022 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <memory>
7 #include <vector>
8
9 class ControllerInterface;
10
11 namespace ciface
12 {
13
14 namespace Core
15 {
16 class Device;
17 }
18
19 class InputBackend
20 {
21 public:
22 InputBackend(ControllerInterface* controller_interface);
23
24 virtual ~InputBackend();
25
26 virtual void PopulateDevices() = 0;
27 // Do NOT directly add/remove devices within here,
28 // just add them to the removal list if necessary.
29 virtual void UpdateInput(std::vector<std::weak_ptr<ciface::Core::Device>>& devices_to_remove);
30
31 virtual void HandleWindowChange();
32
33 ControllerInterface& GetControllerInterface();
34
35 private:
36 ControllerInterface& m_controller_interface;
37 };
38
39 } // namespace ciface