summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-12-12 00:54:25 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-12-12 00:54:25 +0100
commit742086e19063c6ea35195a3e84619ae2b5503a68 (patch)
tree6ac8de07e4d6d50ef75b96a21ebd20b411ef8a56 /winit/src
parentd16b9cf7cd98a3d65ea5408ac9b72298cb267e85 (diff)
downloadiced-742086e19063c6ea35195a3e84619ae2b5503a68.tar.gz
iced-742086e19063c6ea35195a3e84619ae2b5503a68.tar.bz2
iced-742086e19063c6ea35195a3e84619ae2b5503a68.zip
Update `winit` and `glutin`
We avoid a breaking change in `mouse::Button::Other` for the time being.
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)
+ }
}
}