Fix integration example
This commit is contained in:
parent
3a6f29ce67
commit
d33e18ec40
1 changed files with 10 additions and 4 deletions
|
|
@ -286,11 +286,17 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
|
|||
..
|
||||
} = state
|
||||
{
|
||||
window.set_cursor(
|
||||
conversion::mouse_interaction(
|
||||
// Update the mouse cursor
|
||||
if let Some(icon) =
|
||||
iced_winit::conversion::mouse_interaction(
|
||||
mouse_interaction,
|
||||
),
|
||||
);
|
||||
)
|
||||
{
|
||||
window.set_cursor(icon);
|
||||
window.set_cursor_visible(true);
|
||||
} else {
|
||||
window.set_cursor_visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Draw the interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue