From 742086e19063c6ea35195a3e84619ae2b5503a68 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 12 Dec 2020 00:54:25 +0100 Subject: Update `winit` and `glutin` We avoid a breaking change in `mouse::Button::Other` for the time being. --- winit/src/conversion.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winit/src') 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) + } } } -- cgit