pub enum GlassesRawInput {
Gaze {
phase: GazePhase,
hit: Hit,
stable_ms: u64,
vio_stable: bool,
at_ms: u64,
},
Head {
kind: HeadGesture,
target: Expr,
stable_ms: u64,
vio_stable: bool,
at_ms: u64,
},
HandRay {
hit: Hit,
stable_ms: u64,
vio_stable: bool,
at_ms: u64,
},
Pinch {
hit: Hit,
stable_ms: u64,
vio_stable: bool,
at_ms: u64,
},
Tap {
count: u8,
target: Expr,
span_ms: u64,
held_ms: u64,
at_ms: u64,
},
Button {
id: Symbol,
target: Option<Expr>,
held_ms: u64,
at_ms: u64,
},
Controller {
id: Symbol,
action: ControllerAction,
target: Expr,
at_ms: u64,
},
}Expand description
A glasses input before it has Intent meaning.
Variants§
Gaze
A gaze phase over a hit target.
Fields
Head
A stable head gesture.
Fields
§
kind: HeadGestureThe recognized head gesture.
HandRay
A hand ray over a hit target.
Fields
Pinch
A pinch over a hit target.
Fields
Tap
A single, double, or long tap pattern.
Fields
Button
A button on the glasses or an accessory.
Fields
Controller
A controller or accessory action.
Trait Implementations§
Source§impl Clone for GlassesRawInput
impl Clone for GlassesRawInput
Source§fn clone(&self) -> GlassesRawInput
fn clone(&self) -> GlassesRawInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlassesRawInput
impl Debug for GlassesRawInput
Source§impl PartialEq for GlassesRawInput
impl PartialEq for GlassesRawInput
impl StructuralPartialEq for GlassesRawInput
Auto Trait Implementations§
impl Freeze for GlassesRawInput
impl RefUnwindSafe for GlassesRawInput
impl Send for GlassesRawInput
impl Sync for GlassesRawInput
impl Unpin for GlassesRawInput
impl UnsafeUnpin for GlassesRawInput
impl UnwindSafe for GlassesRawInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more