pub enum EventKind {
Show 16 variants
Pointer,
Keyboard,
Touch,
Biosignal,
Depth,
Skeleton,
Imu,
Audio,
Sensor,
Assistive,
Gamepad,
SpatialHead,
SpatialHand,
SpatialGaze,
Midi,
Haptic,
}Expand description
The kind of inbound event.
Variants§
Pointer
Pointer move/button (mouse, trackpad, stylus).
Keyboard
Keyboard key press/release.
Touch
Touch contact (start, move, end).
Biosignal
Biosignal (EEG, EMG, ECG, GSR).
Depth
Depth map (camera depth buffer).
Skeleton
Hand/body skeleton (joint positions).
Imu
IMU (accelerometer, gyroscope, magnetometer).
Audio
Audio (raw audio samples).
Sensor
Generic sensor (temperature, humidity, pressure, etc.).
Assistive
Assistive input (sip-and-puff, switch, Braille chord).
Gamepad
Gamepad / game controller buttons, thumbsticks, and triggers.
SpatialHead
6-DoF Spatial Head pose (position + orientation quaternion).
SpatialHand
26-joint articulated Spatial Hand skeleton and gesture confidence.
SpatialGaze
Eye gaze ray, pupilometry, and vergence tracking.
Midi
MIDI controller event (note on/off, control change, pitch bend).
Haptic
Outbound/Inbound haptic actuation and vibrotactile feedback.
Implementations§
Trait Implementations§
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.