pointer-types 0.5.0

Contains types to define mouse related events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, Hash, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[repr(u8)]
pub enum PointerButton {
  Primary = 0,
  Secondary = 1,
  Tertiary = 2,
  Back = 3,
  Forward = 4,
  Eraser = 5,
  Other(u8) = 6,
}