Skip to main content

additional_pointer_button_mask

Function additional_pointer_button_mask 

Source
pub const fn additional_pointer_button_mask(index: u16) -> Option<u32>
Expand description

Returns the portable mask for an additional mouse button.

index == 0 is the first button beyond primary/secondary/tertiary/back/ forward. The u32 event mask has room for 27 such buttons; larger native button indices are intentionally unrepresentable instead of colliding with an existing bit.