Merge pull request #1797 from bbb651/master
Make mouse::Button::Other take u16 instead of u8
This commit is contained in:
commit
e31582e59e
2 changed files with 2 additions and 4 deletions
|
|
@ -11,5 +11,5 @@ pub enum Button {
|
|||
Middle,
|
||||
|
||||
/// Some other button.
|
||||
Other(u8),
|
||||
Other(u16),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,9 +250,7 @@ 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 as u8)
|
||||
}
|
||||
winit::event::MouseButton::Other(other) => mouse::Button::Other(other),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue