ControllerInterface: evdev InputBackend implementation.
This commit is contained in:
1 parent
44a4573303
commit
2e5cd5d519
3 files changed
+93
-58
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user