Skip to main content

try_from_winit_button

Function try_from_winit_button 

Source
pub fn try_from_winit_button(b: MouseButton) -> Option<PointerButton>
Expand description

Try to make a [PointerButton] from a [MouseButton].

Because values of [MouseButton::Other] can start at 0, they are mapped to the arbitrary buttons B7..B32. Values greater than 25 will not be mapped.