gestura_core_gestures/lib.rs
1use serde::{Deserialize, Serialize};
2
3/// Generic gesture representation agnostic to the underlying hardware source.
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct Gesture {
6 pub gesture_type: String,
7 pub confidence: f32,
8 pub acceleration: Option<[f32; 3]>,
9 pub gyroscope: Option<[f32; 3]>,
10}