| 1 |
|
| 2 |
|
| 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 |
|
| 28 |
|
| 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 |
} |