Update winit and glutin
We avoid a breaking change in `mouse::Button::Other` for the time being.
This commit is contained in:
parent
d16b9cf7cd
commit
742086e190
3 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue