Update winit and glutin

We avoid a breaking change in `mouse::Button::Other` for the time being.
This commit is contained in:
Héctor Ramón Jiménez 2020-12-12 00:54:25 +01:00
parent d16b9cf7cd
commit 742086e190
3 changed files with 5 additions and 3 deletions

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::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)
}
}
}