MayaFlux 1.0.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 921 of file TabletBackend.cpp.

922{
923 std::lock_guard lock(m_devices_mutex);
924 auto it = m_tool_paths.find(device_id);
925 if (it == m_tool_paths.end())
926 return false;
927 auto dev = m_devices.find(it->second);
928 return dev != m_devices.end() && dev->second->active.load();
929}
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.