mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
ControllerInterface/Android: Implement sensor input for InputDevices
This functionality was added in Android 12 to let apps get motion data for gamepads.
This commit is contained in:
@ -242,6 +242,18 @@ std::shared_ptr<Device> DeviceContainer::FindDevice(const DeviceQualifier& devq)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<Device>> DeviceContainer::GetAllDevices() const
|
||||
{
|
||||
std::lock_guard lk(m_devices_mutex);
|
||||
|
||||
std::vector<std::shared_ptr<Device>> devices;
|
||||
|
||||
for (const auto& d : m_devices)
|
||||
devices.emplace_back(d);
|
||||
|
||||
return devices;
|
||||
}
|
||||
|
||||
std::vector<std::string> DeviceContainer::GetAllDeviceStrings() const
|
||||
{
|
||||
std::lock_guard lk(m_devices_mutex);
|
||||
|
Reference in New Issue
Block a user