summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_GamepadButton.rs
blob: f06e3ec7d817898eaf9d7d6b8830dbeee6e36fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadButton , typescript_type = "GamepadButton")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `GamepadButton` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"]
    pub type GamepadButton;
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = pressed)]
    #[doc = "Getter for the `pressed` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"]
    pub fn pressed(this: &GamepadButton) -> bool;
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = touched)]
    #[doc = "Getter for the `touched` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/touched)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"]
    pub fn touched(this: &GamepadButton) -> bool;
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadButton" , js_name = value)]
    #[doc = "Getter for the `value` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"]
    pub fn value(this: &GamepadButton) -> f64;
}