pub enum Event {
AddInput(InputSource),
RemoveInput(InputId),
UpdateInput(InputId, InputSource),
SessionEnd,
VisibilityChange(Visibility),
Select(InputId, SelectKind, SelectEvent, Frame),
InputChanged(InputId, InputFrame),
ReferenceSpaceChanged(BaseSpace, RigidTransform3D<f32, ApiSpace, ApiSpace>),
}
Variants§
AddInput(InputSource)
Input source connected
RemoveInput(InputId)
Input source disconnected
UpdateInput(InputId, InputSource)
Input updated (this is a disconnect+reconnect)
SessionEnd
Session ended by device
VisibilityChange(Visibility)
Session focused/blurred/etc
Select(InputId, SelectKind, SelectEvent, Frame)
Selection started / ended
InputChanged(InputId, InputFrame)
Input from an input source has changed
ReferenceSpaceChanged(BaseSpace, RigidTransform3D<f32, ApiSpace, ApiSpace>)
Reference space has changed
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)