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 = GamepadButton , typescript_type = "GamepadButton")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `GamepadButton` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] 13 pub type GamepadButton; 14 # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = pressed)] 15 #[doc = "Getter for the `pressed` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] pressed(this: &GamepadButton) -> bool20 pub fn pressed(this: &GamepadButton) -> bool; 21 # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = touched)] 22 #[doc = "Getter for the `touched` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/touched)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] touched(this: &GamepadButton) -> bool27 pub fn touched(this: &GamepadButton) -> bool; 28 # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = value)] 29 #[doc = "Getter for the `value` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] value(this: &GamepadButton) -> f6434 pub fn value(this: &GamepadButton) -> f64; 35 } 36