Added support for motion

This commit is contained in:
SSimco
2024-09-02 14:25:04 +03:00
parent d0eac6f470
commit 81c0e4a465
13 changed files with 177 additions and 8 deletions
+6
View File
@@ -967,3 +967,9 @@ void InputManager::update_thread()
std::this_thread::yield();
}
}
MotionSample InputManager::get_device_motion_sample() const
{
std::shared_lock lock(m_device_motion.m_mutex);
return m_device_motion.m_motion_sample;
}