Function silkenweb::window::on_devicemotion

source ·
pub fn on_devicemotion(
    f: impl FnMut(DeviceMotionEvent) + 'static
) -> EventCallback
Expand description

Add a devicemotion event handler at the window level.

This only has an effect on WASM targets.