InputCommon: Add Pipes InputBackend class.
This commit is contained in:
1 parent
8098be3dfa
commit
2ac59bf581
3 files changed
+15
-6
No files matched your search
@@ -39,7 +39,19 @@ static double StringToDouble(const std::string& text)
|
||||
return result;
|
||||
}
|
||||
|
||||
void PopulateDevices()
|
||||
class InputBackend final : public ciface::InputBackend
|
||||
{
|
||||
public:
|
||||
using ciface::InputBackend::InputBackend;
|
||||
void PopulateDevices() override;
|
||||
};
|
||||
|
||||
std::unique_ptr<ciface::InputBackend> CreateInputBackend(ControllerInterface* controller_interface)
|
||||
{
|
||||
return std::make_unique<InputBackend>(controller_interface);
|
||||
}
|
||||
|
||||
void InputBackend::PopulateDevices()
|
||||
{
|
||||
// Search the Pipes directory for files that we can open in read-only,
|
||||
// non-blocking mode. The device name is the virtual name of the file.
|
||||
|
||||
Reference in new issue
Block a user