Struct webxr_api::input::InputFrame
source · pub struct InputFrame {
pub id: InputId,
pub target_ray_origin: Option<RigidTransform3D<f32, Input, Native>>,
pub grip_origin: Option<RigidTransform3D<f32, Input, Native>>,
pub pressed: bool,
pub hand: Option<Box<Hand<JointFrame>>>,
pub squeezed: bool,
pub button_values: Vec<f32>,
pub axis_values: Vec<f32>,
pub input_changed: bool,
}
Fields§
§id: InputId
§target_ray_origin: Option<RigidTransform3D<f32, Input, Native>>
§grip_origin: Option<RigidTransform3D<f32, Input, Native>>
§pressed: bool
§hand: Option<Box<Hand<JointFrame>>>
§squeezed: bool
§axis_values: Vec<f32>
§input_changed: bool
Trait Implementations§
source§impl Clone for InputFrame
impl Clone for InputFrame
source§fn clone(&self) -> InputFrame
fn clone(&self) -> InputFrame
Returns a copy of the value. Read more
1.0.0 · 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 InputFrame
impl Debug for InputFrame
source§impl<'de> Deserialize<'de> for InputFrame
impl<'de> Deserialize<'de> for InputFrame
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 InputFrame
impl RefUnwindSafe for InputFrame
impl Send for InputFrame
impl Sync for InputFrame
impl Unpin for InputFrame
impl UnwindSafe for InputFrame
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