Merge pull request #658 from hecrj/update-winit-and-glutin

Update `winit` and `glutin`
This commit is contained in:
Héctor Ramón 2020-12-15 03:27:42 +01:00 committed by GitHub
commit a42b3c6998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -14,7 +14,7 @@ categories = ["gui"]
debug = ["iced_native/debug"] debug = ["iced_native/debug"]
[dependencies] [dependencies]
winit = "0.23" winit = "0.24"
window_clipboard = "0.1" window_clipboard = "0.1"
log = "0.4" log = "0.4"
thiserror = "1.0" 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::Left => mouse::Button::Left,
winit::event::MouseButton::Right => mouse::Button::Right, winit::event::MouseButton::Right => mouse::Button::Right,
winit::event::MouseButton::Middle => mouse::Button::Middle, 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)
}
} }
} }