Skip to content

Commit

Permalink
unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed Oct 8, 2024
1 parent e02b043 commit 41e939a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ pub enum WindowEvent {
}

/// Represents the kind type of a pointer event.
///
/// ## Platform-specific
///
/// **Wayland/X11:** [`Unknown`](Self::Unknown) can not occur.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum PointerKind {
Mouse,
Expand All @@ -472,8 +476,7 @@ pub enum PointerKind {
///
/// ## Platform-specific
///
/// **Wayland/X11:** Can only identify [`Touch`](Self::Touch), any other pointer is identified as
/// [`Mouse`](Self::Mouse).
/// **Wayland/X11:** [`Unknown`](Self::Unknown) can not occur.
#[derive(Clone, Debug, PartialEq)]
pub enum PointerSource {
Mouse,
Expand Down Expand Up @@ -534,8 +537,7 @@ impl From<PointerSource> for PointerKind {
///
/// ## Platform-specific
///
/// **Wayland/X11:** Can only identify [`Touch`](Self::Touch), any other pointer is identified as
/// [`Mouse`](Self::Mouse).
/// **Wayland/X11:** [`Unknown`](Self::Unknown) can not occur.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ButtonSource {
Mouse(MouseButton),
Expand Down

0 comments on commit 41e939a

Please sign in to comment.