Skip to content

Commit

Permalink
Merge pull request #658 from hecrj/update-winit-and-glutin
Browse files Browse the repository at this point in the history
Update `winit` and `glutin`
  • Loading branch information
hecrj committed Dec 15, 2020
2 parents d16b9cf + 742086e commit a42b3c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion glutin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["gui"]
debug = ["iced_winit/debug"]

[dependencies]
glutin = "0.25"
glutin = "0.26"

[dependencies.iced_native]
version = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion winit/src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

Expand Down

0 comments on commit a42b3c6

Please sign in to comment.