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

◆ open_device()

bool MayaFlux::Core::InputSubsystem::open_device ( InputType  backend_type,
uint32_t  device_id 
)

Open a device.

Definition at line 260 of file InputSubsystem.cpp.

261{
262 std::shared_lock lock(m_backends_mutex);
263 auto it = m_backends.find(backend_type);
264 if (it == m_backends.end()) {
266 "Backend not found for device open request");
267 return false;
268 }
269 return it->second->open_device(device_id);
270}
#define MF_ERROR(comp, ctx,...)
std::unordered_map< InputType, std::unique_ptr< IInputBackend > > m_backends
@ InputSubsystem
Input subsystem operations (device management, event dispatch)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::InputSubsystem, m_backends, m_backends_mutex, and MF_ERROR.

Referenced by register_backend_service().

+ Here is the caller graph for this function: