[−][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 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 Clone for GamepadServiceTest
[src]
fn clone(&self) -> GamepadServiceTest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl AsRef<JsValue> for GamepadServiceTest
[src]
impl AsRef<GamepadServiceTest> for GamepadServiceTest
[src]
fn as_ref(&self) -> &GamepadServiceTest
[src]
impl AsRef<Object> for GamepadServiceTest
[src]
impl Eq for GamepadServiceTest
[src]
impl PartialEq<GamepadServiceTest> for GamepadServiceTest
[src]
fn eq(&self, other: &GamepadServiceTest) -> bool
[src]
fn ne(&self, other: &GamepadServiceTest) -> bool
[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]
fn has_type<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast,
[src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast,
[src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast,
[src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool
[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) -> Self
[src]
impl WasmDescribe for GamepadServiceTest
[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) -> 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) -> Self::Abi
[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
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl OptionFromWasmAbi for GamepadServiceTest
[src]
impl OptionIntoWasmAbi for GamepadServiceTest
[src]
impl<'a> OptionIntoWasmAbi for &'a GamepadServiceTest
[src]
Auto Trait Implementations
impl !Send for GamepadServiceTest
impl !Sync for GamepadServiceTest
impl Unpin for GamepadServiceTest
impl UnwindSafe for GamepadServiceTest
impl RefUnwindSafe for GamepadServiceTest
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi