[−][src]Struct web_sys::GamepadServiceTest
The GamepadServiceTest object
This API requires the following crate features to be activated: GamepadServiceTest
Methods
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]
&self,
id: &str,
mapping: GamepadMappingType,
hand: GamepadHand,
num_buttons: u32,
num_axes: u32,
num_haptics: u32
) -> Result<Promise, JsValue>
The addGamepad() method
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
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]
&self,
index: u32,
button: u32,
pressed: bool,
touched: bool
)
The newButtonEvent() method
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]
&self,
index: u32,
button: u32,
pressed: bool,
touched: bool,
value: f64
)
The newButtonValueEvent() method
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]
&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]>
)
The newPoseMove() method
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
This API requires the following crate features to be activated: GamepadServiceTest
impl GamepadServiceTest[src]
pub fn no_mapping(&self) -> GamepadMappingType[src]
The noMapping getter
This API requires the following crate features to be activated: GamepadMappingType, GamepadServiceTest
impl GamepadServiceTest[src]
pub fn standard_mapping(&self) -> GamepadMappingType[src]
The standardMapping getter
This API requires the following crate features to be activated: GamepadMappingType, GamepadServiceTest
impl GamepadServiceTest[src]
pub fn no_hand(&self) -> GamepadHand[src]
The noHand getter
This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest
impl GamepadServiceTest[src]
pub fn left_hand(&self) -> GamepadHand[src]
The leftHand getter
This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest
impl GamepadServiceTest[src]
pub fn right_hand(&self) -> GamepadHand[src]
The rightHand getter
This API requires the following crate features to be activated: GamepadHand, GamepadServiceTest
Trait Implementations
impl Clone for GamepadServiceTest[src]
fn clone(&self) -> GamepadServiceTest[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<JsValue> for GamepadServiceTest[src]
impl AsRef<Object> for GamepadServiceTest[src]
impl From<JsValue> for GamepadServiceTest[src]
fn from(obj: JsValue) -> GamepadServiceTest[src]
impl From<GamepadServiceTest> for JsValue[src]
fn from(obj: GamepadServiceTest) -> JsValue[src]
impl From<GamepadServiceTest> for Object[src]
fn from(obj: GamepadServiceTest) -> Object[src]
impl Deref for GamepadServiceTest[src]
impl Debug for GamepadServiceTest[src]
impl JsCast for GamepadServiceTest[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
default fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
Test whether this JS value is an instance of the type T. Read more
default fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
default fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl WasmDescribe 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
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
impl OptionIntoWasmAbi for GamepadServiceTest[src]
impl<'a> OptionIntoWasmAbi for &'a GamepadServiceTest[src]
impl OptionFromWasmAbi for GamepadServiceTest[src]
Auto Trait Implementations
impl !Send for GamepadServiceTest
impl !Sync for GamepadServiceTest
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi