pub fn on_input(f: impl FnMut(InputEvent) + 'static) -> EventCallback
Expand description
Add a input
event handler at the window level.
This only has an effect on WASM targets.
pub fn on_input(f: impl FnMut(InputEvent) + 'static) -> EventCallback
Add a input
event handler at the window level.
This only has an effect on WASM targets.