Let the users wake up the event loop and then they could poll their user sources. Co-authored-by: Mads Marquart <mads@marquart.dk> Co-authored-by: daxpedda <daxpedda@gmail.com>
23 lines
448 B
Rust
23 lines
448 B
Rust
#[allow(dead_code)]
|
|
fn needs_sync<T: Sync>() {}
|
|
|
|
#[test]
|
|
fn event_loop_proxy_send() {
|
|
needs_sync::<winit::event_loop::EventLoopProxy>();
|
|
}
|
|
|
|
#[test]
|
|
fn window_sync() {
|
|
needs_sync::<winit::window::Window>();
|
|
}
|
|
|
|
#[test]
|
|
fn window_builder_sync() {
|
|
needs_sync::<winit::window::WindowAttributes>();
|
|
}
|
|
|
|
#[test]
|
|
fn custom_cursor_sync() {
|
|
needs_sync::<winit::window::CustomCursorSource>();
|
|
needs_sync::<winit::window::CustomCursor>();
|
|
}
|