#[derive(Copy,Clone,Debug,PartialEq, Eq)]
#[repr(u8)]
pub enum MouseButton {
None = 0,
Left,
Right,
Center
}
#[cfg(feature = "EVENT_RECORDER")]
impl MouseButton {
pub(crate) fn name(&self)->&'static str {
match self {
MouseButton::None => "None",
MouseButton::Left => "Left",
MouseButton::Right => "Right",
MouseButton::Center => "Center",
}
}
}