Update winit
and glutin
We avoid a breaking change in `mouse::Button::Other` for the time being.
This commit is contained in:
parent
d16b9cf7cd
commit
742086e190
@ -14,7 +14,7 @@ categories = ["gui"]
|
||||
debug = ["iced_winit/debug"]
|
||||
|
||||
[dependencies]
|
||||
glutin = "0.25"
|
||||
glutin = "0.26"
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.3"
|
||||
|
@ -14,7 +14,7 @@ categories = ["gui"]
|
||||
debug = ["iced_native/debug"]
|
||||
|
||||
[dependencies]
|
||||
winit = "0.23"
|
||||
winit = "0.24"
|
||||
window_clipboard = "0.1"
|
||||
log = "0.4"
|
||||
thiserror = "1.0"
|
||||
|
@ -170,7 +170,9 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
|
||||
winit::event::MouseButton::Left => mouse::Button::Left,
|
||||
winit::event::MouseButton::Right => mouse::Button::Right,
|
||||
winit::event::MouseButton::Middle => mouse::Button::Middle,
|
||||
winit::event::MouseButton::Other(other) => mouse::Button::Other(other),
|
||||
winit::event::MouseButton::Other(other) => {
|
||||
mouse::Button::Other(other as u8)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user