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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadServiceTest , typescript_type = "GamepadServiceTest")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `GamepadServiceTest` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub type GamepadServiceTest;
    #[cfg(feature = "GamepadMappingType")]
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noMapping)]
    #[doc = "Getter for the `noMapping` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noMapping)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"]
    pub fn no_mapping(this: &GamepadServiceTest) -> GamepadMappingType;
    #[cfg(feature = "GamepadMappingType")]
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = standardMapping)]
    #[doc = "Getter for the `standardMapping` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/standardMapping)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"]
    pub fn standard_mapping(this: &GamepadServiceTest) -> GamepadMappingType;
    #[cfg(feature = "GamepadHand")]
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = noHand)]
    #[doc = "Getter for the `noHand` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noHand)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"]
    pub fn no_hand(this: &GamepadServiceTest) -> GamepadHand;
    #[cfg(feature = "GamepadHand")]
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = leftHand)]
    #[doc = "Getter for the `leftHand` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/leftHand)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"]
    pub fn left_hand(this: &GamepadServiceTest) -> GamepadHand;
    #[cfg(feature = "GamepadHand")]
    # [wasm_bindgen (structural , method , getter , js_class = "GamepadServiceTest" , js_name = rightHand)]
    #[doc = "Getter for the `rightHand` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/rightHand)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"]
    pub fn right_hand(this: &GamepadServiceTest) -> GamepadHand;
    #[cfg(all(feature = "GamepadHand", feature = "GamepadMappingType",))]
    # [wasm_bindgen (catch , method , structural , js_class = "GamepadServiceTest" , js_name = addGamepad)]
    #[doc = "The `addGamepad()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/addGamepad)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadMappingType`, `GamepadServiceTest`*"]
    pub fn add_gamepad(
        this: &GamepadServiceTest,
        id: &str,
        mapping: GamepadMappingType,
        hand: GamepadHand,
        num_buttons: u32,
        num_axes: u32,
        num_haptics: u32,
    ) -> Result<::js_sys::Promise, JsValue>;
    # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newAxisMoveEvent)]
    #[doc = "The `newAxisMoveEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newAxisMoveEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub fn new_axis_move_event(this: &GamepadServiceTest, index: u32, axis: u32, value: f64);
    # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonEvent)]
    #[doc = "The `newButtonEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub fn new_button_event(
        this: &GamepadServiceTest,
        index: u32,
        button: u32,
        pressed: bool,
        touched: bool,
    );
    # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newButtonValueEvent)]
    #[doc = "The `newButtonValueEvent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonValueEvent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub fn new_button_value_event(
        this: &GamepadServiceTest,
        index: u32,
        button: u32,
        pressed: bool,
        touched: bool,
        value: f64,
    );
    # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = newPoseMove)]
    #[doc = "The `newPoseMove()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newPoseMove)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub fn new_pose_move(
        this: &GamepadServiceTest,
        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]>,
    );
    # [wasm_bindgen (method , structural , js_class = "GamepadServiceTest" , js_name = removeGamepad)]
    #[doc = "The `removeGamepad()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/removeGamepad)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"]
    pub fn remove_gamepad(this: &GamepadServiceTest, index: u32);
}