1 2 3 4 5 6 7 8
use super::*; thread_local! { /// Thread-local hub storing scoped `SystemEvent` hook subscriptions. pub(crate) static SYSTEM_EVENT_HUB: RefCell<SystemEventHub> = RefCell::new(SystemEventHub::default()); /// Most recently dispatched sanitized 6-DOF device motion sample on the UI thread. pub(crate) static LATEST_DEVICE_MOTION: Cell<DeviceMotionSample> = Cell::new(DeviceMotionSample::upright()); }