summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-12-15 03:27:42 +0100
committerLibravatar GitHub <noreply@github.com>2020-12-15 03:27:42 +0100
commita42b3c6998274e75fd10f5ff3cecbdb37b9e3895 (patch)
tree6ac8de07e4d6d50ef75b96a21ebd20b411ef8a56 /winit/src
parentd16b9cf7cd98a3d65ea5408ac9b72298cb267e85 (diff)
parent742086e19063c6ea35195a3e84619ae2b5503a68 (diff)
downloadiced-a42b3c6998274e75fd10f5ff3cecbdb37b9e3895.tar.gz
iced-a42b3c6998274e75fd10f5ff3cecbdb37b9e3895.tar.bz2
iced-a42b3c6998274e75fd10f5ff3cecbdb37b9e3895.zip
Merge pull request #658 from hecrj/update-winit-and-glutin
Update `winit` and `glutin`
Diffstat (limited to 'winit/src')
-rw-r--r--winit/src/conversion.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs
index 6102b4b3..138bc64d 100644
--- a/winit/src/conversion.rs
+++ b/winit/src/conversion.rs
@@ -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)
+ }
}
}