1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadPose , typescript_type = "GamepadPose")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `GamepadPose` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] 13 pub type GamepadPose; 14 # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasOrientation)] 15 #[doc = "Getter for the `hasOrientation` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] has_orientation(this: &GamepadPose) -> bool20 pub fn has_orientation(this: &GamepadPose) -> bool; 21 # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasPosition)] 22 #[doc = "Getter for the `hasPosition` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] has_position(this: &GamepadPose) -> bool27 pub fn has_position(this: &GamepadPose) -> bool; 28 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = position)] 29 #[doc = "Getter for the `position` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] position(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>34 pub fn position(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 35 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearVelocity)] 36 #[doc = "Getter for the `linearVelocity` field of this object."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] linear_velocity(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>41 pub fn linear_velocity(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 42 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearAcceleration)] 43 #[doc = "Getter for the `linearAcceleration` field of this object."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] linear_acceleration(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>48 pub fn linear_acceleration(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 49 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = orientation)] 50 #[doc = "Getter for the `orientation` field of this object."] 51 #[doc = ""] 52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation)"] 53 #[doc = ""] 54 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] orientation(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>55 pub fn orientation(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 56 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularVelocity)] 57 #[doc = "Getter for the `angularVelocity` field of this object."] 58 #[doc = ""] 59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity)"] 60 #[doc = ""] 61 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] angular_velocity(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>62 pub fn angular_velocity(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 63 # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularAcceleration)] 64 #[doc = "Getter for the `angularAcceleration` field of this object."] 65 #[doc = ""] 66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration)"] 67 #[doc = ""] 68 #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] angular_acceleration(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>69 pub fn angular_acceleration(this: &GamepadPose) -> Result<Option<Vec<f32>>, JsValue>; 70 } 71