mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Added support for motion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user