Enum webxr_api::mock::MockInputMsg
source · pub enum MockInputMsg {
SetHandedness(Handedness),
SetTargetRayMode(TargetRayMode),
SetProfiles(Vec<String>),
SetPointerOrigin(Option<RigidTransform3D<f32, Input, Native>>),
SetGripOrigin(Option<RigidTransform3D<f32, Input, Native>>),
TriggerSelect(SelectKind, SelectEvent),
Disconnect,
Reconnect,
SetSupportedButtons(Vec<MockButton>),
UpdateButtonState(MockButton),
}
Variants§
SetHandedness(Handedness)
SetTargetRayMode(TargetRayMode)
SetProfiles(Vec<String>)
SetPointerOrigin(Option<RigidTransform3D<f32, Input, Native>>)
SetGripOrigin(Option<RigidTransform3D<f32, Input, Native>>)
TriggerSelect(SelectKind, SelectEvent)
Note: SelectEvent::Select here refers to a complete Select event, not just the end event, i.e. it refers to https://immersive-web.github.io/webxr-test-api/#dom-fakexrinputcontroller-simulateselect
Disconnect
Reconnect
SetSupportedButtons(Vec<MockButton>)
UpdateButtonState(MockButton)
Trait Implementations§
source§impl Debug for MockInputMsg
impl Debug for MockInputMsg
source§impl<'de> Deserialize<'de> for MockInputMsg
impl<'de> Deserialize<'de> for MockInputMsg
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 MockInputMsg
impl RefUnwindSafe for MockInputMsg
impl Send for MockInputMsg
impl Sync for MockInputMsg
impl Unpin for MockInputMsg
impl UnwindSafe for MockInputMsg
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