diff options
Diffstat (limited to 'native/src/input/touch.rs')
-rw-r--r-- | native/src/input/touch.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/native/src/input/touch.rs b/native/src/input/touch.rs deleted file mode 100644 index ea879427..00000000 --- a/native/src/input/touch.rs +++ /dev/null @@ -1,36 +0,0 @@ -//! Build touch events. - -use crate::Point; - -/// A touch interaction. -#[derive(Debug, Clone, Copy, PartialEq)] -pub struct Touch { - /// The finger of the touch. - pub finger: Finger, - - /// The position of the touch. - pub position: Point, - - /// The state of the touch. - pub phase: Phase, -} - -/// A unique identifier representing a finger on a touch interaction. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct Finger(pub u64); - -/// The state of a touch interaction. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum Phase { - /// A touch interaction was started. - Started, - - /// An on-going touch interaction was moved. - Moved, - - /// A touch interaction was ended. - Ended, - - /// A touch interaction was canceled. - Canceled, -} |