[][src]Struct web_sys::GamepadServiceTest

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

The GamepadServiceTest class.

MDN Documentation

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

Implementations

impl GamepadServiceTest[src]

pub fn no_mapping(&self) -> GamepadMappingType[src]

Getter for the noMapping field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadMappingType, GamepadServiceTest

impl GamepadServiceTest[src]

pub fn standard_mapping(&self) -> GamepadMappingType[src]

Getter for the standardMapping field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadMappingType, GamepadServiceTest

impl GamepadServiceTest[src]

pub fn no_hand(&self) -> GamepadHand[src]

Getter for the noHand field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest

impl GamepadServiceTest[src]

pub fn left_hand(&self) -> GamepadHand[src]

Getter for the leftHand field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest

impl GamepadServiceTest[src]

pub fn right_hand(&self) -> GamepadHand[src]

Getter for the rightHand field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest

impl GamepadServiceTest[src]

pub fn add_gamepad(
    &self,
    id: &str,
    mapping: GamepadMappingType,
    hand: GamepadHand,
    num_buttons: u32,
    num_axes: u32,
    num_haptics: u32
) -> Result<Promise, JsValue>
[src]

The addGamepad() method.

MDN Documentation

This API requires the following crate features to be activated: GamepadHand, GamepadMappingType, GamepadServiceTest

impl GamepadServiceTest[src]

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

The newAxisMoveEvent() method.

MDN Documentation

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

impl GamepadServiceTest[src]

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

The newButtonEvent() method.

MDN Documentation

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

impl GamepadServiceTest[src]

pub fn new_button_value_event(
    &self,
    index: u32,
    button: u32,
    pressed: bool,
    touched: bool,
    value: f64
)
[src]

The newButtonValueEvent() method.

MDN Documentation

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

impl GamepadServiceTest[src]

pub fn new_pose_move(
    &self,
    index: u32,
    orient: Option<&mut [f32]>,
    pos: Option<&mut [f32]>,
    ang_velocity: Option<&mut [f32]>,
    ang_acceleration: Option<&mut [f32]>,
    lin_velocity: Option<&mut [f32]>,
    lin_acceleration: Option<&mut [f32]>
)
[src]

The newPoseMove() method.

MDN Documentation

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

impl GamepadServiceTest[src]

pub fn remove_gamepad(&self, index: u32)[src]

The removeGamepad() method.

MDN Documentation

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

Trait Implementations

impl AsRef<GamepadServiceTest> for GamepadServiceTest[src]

impl AsRef<JsValue> for GamepadServiceTest[src]

impl AsRef<Object> for GamepadServiceTest[src]

impl Clone for GamepadServiceTest[src]

impl Debug for GamepadServiceTest[src]

impl Deref for GamepadServiceTest[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GamepadServiceTest[src]

impl From<GamepadServiceTest> for JsValue[src]

impl From<GamepadServiceTest> for Object[src]

impl From<JsValue> for GamepadServiceTest[src]

impl FromWasmAbi for GamepadServiceTest[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 GamepadServiceTest[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 GamepadServiceTest[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 GamepadServiceTest[src]

impl OptionFromWasmAbi for GamepadServiceTest[src]

impl OptionIntoWasmAbi for GamepadServiceTest[src]

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

impl PartialEq<GamepadServiceTest> for GamepadServiceTest[src]

impl RefFromWasmAbi for GamepadServiceTest[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GamepadServiceTest>

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 GamepadServiceTest[src]

impl StructuralPartialEq for GamepadServiceTest[src]

impl WasmDescribe for GamepadServiceTest[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.