[][src]Struct web_sys::VrMockController

#[repr(transparent)]pub struct VrMockController { /* fields omitted */ }

The VrMockController class.

MDN Documentation

This API requires the following crate features to be activated: VrMockController

Methods

impl VrMockController[src]

pub fn new_axis_move_event(&self, axis: u32, value: f64)[src]

The newAxisMoveEvent() method.

MDN Documentation

This API requires the following crate features to be activated: VrMockController

impl VrMockController[src]

pub fn new_button_event(&self, button: u32, pressed: bool)[src]

The newButtonEvent() method.

MDN Documentation

This API requires the following crate features to be activated: VrMockController

impl VrMockController[src]

pub fn new_pose_move(
    &self,
    position: Option<&mut [f32]>,
    linear_velocity: Option<&mut [f32]>,
    linear_acceleration: Option<&mut [f32]>,
    orientation: Option<&mut [f32]>,
    angular_velocity: Option<&mut [f32]>,
    angular_acceleration: Option<&mut [f32]>
)
[src]

The newPoseMove() method.

MDN Documentation

This API requires the following crate features to be activated: VrMockController

Trait Implementations

impl AsRef<JsValue> for VrMockController[src]

impl AsRef<Object> for VrMockController[src]

impl AsRef<VrMockController> for VrMockController[src]

impl Clone for VrMockController[src]

impl Debug for VrMockController[src]

impl Deref for VrMockController[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for VrMockController[src]

impl From<JsValue> for VrMockController[src]

impl From<VrMockController> for JsValue[src]

impl From<VrMockController> for Object[src]

impl FromWasmAbi for VrMockController[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for VrMockController[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a VrMockController[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for VrMockController[src]

impl OptionFromWasmAbi for VrMockController[src]

impl OptionIntoWasmAbi for VrMockController[src]

impl<'a> OptionIntoWasmAbi for &'a VrMockController[src]

impl PartialEq<VrMockController> for VrMockController[src]

impl RefFromWasmAbi for VrMockController[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<VrMockController>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for VrMockController[src]

impl StructuralPartialEq for VrMockController[src]

impl WasmDescribe for VrMockController[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.