Produce cursor events in iced_winit::conversion
This commit is contained in:
parent
e941eab4ab
commit
4b0cc178dd
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,12 @@ pub fn window_event(
|
||||||
height: logical_size.height,
|
height: logical_size.height,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
WindowEvent::CursorEntered { .. } => {
|
||||||
|
Some(Event::Mouse(mouse::Event::CursorEntered))
|
||||||
|
}
|
||||||
|
WindowEvent::CursorLeft { .. } => {
|
||||||
|
Some(Event::Mouse(mouse::Event::CursorLeft))
|
||||||
|
}
|
||||||
WindowEvent::CursorMoved { position, .. } => {
|
WindowEvent::CursorMoved { position, .. } => {
|
||||||
let position = position.to_logical::<f64>(scale_factor);
|
let position = position.to_logical::<f64>(scale_factor);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue