MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_all_devices()

std::vector< InputDeviceInfo > MayaFlux::Core::InputSubsystem::get_all_devices ( ) const

Get all available input devices across all backends.

Definition at line 255 of file InputSubsystem.cpp.

256{
257 std::shared_lock lock(m_backends_mutex);
258 std::vector<InputDeviceInfo> result;
259 for (const auto& [type, backend] : m_backends) {
260 auto devices = backend->get_devices();
261 result.insert(result.end(), devices.begin(), devices.end());
262 }
263 return result;
264}
std::unordered_map< InputType, std::unique_ptr< IInputBackend > > m_backends

References m_backends, and m_backends_mutex.

Referenced by MayaFlux::get_all_input_devices(), and register_backend_service().

+ Here is the caller graph for this function: