Update winit and glutin

We avoid a breaking change in `mouse::Button::Other` for the time being.
This commit is contained in:
Héctor Ramón Jiménez 2020-12-12 00:54:25 +01:00
parent d16b9cf7cd
commit 742086e190
3 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ categories = ["gui"]
debug = ["iced_winit/debug"]
[dependencies]
glutin = "0.25"
glutin = "0.26"
[dependencies.iced_native]
version = "0.3"

View File

@ -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"

View File

@ -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)
}
}
}