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

◆ is_device_open()

bool MayaFlux::Core::TabletBackend::is_device_open ( uint32_t  device_id) const
overridevirtual

Check if a device is currently open.

Implements MayaFlux::Core::IInputBackend.

Definition at line 896 of file TabletBackend.cpp.

897{
898 std::lock_guard lock(m_devices_mutex);
899 auto it = m_tool_paths.find(device_id);
900 if (it == m_tool_paths.end())
901 return false;
902 auto dev = m_devices.find(it->second);
903 return dev != m_devices.end() && dev->second->active.load();
904}
std::unordered_map< uint32_t, std::string > m_tool_paths
std::unordered_map< std::string, std::shared_ptr< TabletDevice > > m_devices

References m_devices, m_devices_mutex, and m_tool_paths.