maxcountryman_web_sys/features/
gen_GamepadAxisMoveEvent.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadAxisMoveEvent , typescript_type = "GamepadAxisMoveEvent")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `GamepadAxisMoveEvent` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"]
13    pub type GamepadAxisMoveEvent;
14    # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = axis)]
15    #[doc = "Getter for the `axis` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/axis)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"]
20    pub fn axis(this: &GamepadAxisMoveEvent) -> u32;
21    # [wasm_bindgen (structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = value)]
22    #[doc = "Getter for the `value` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/value)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"]
27    pub fn value(this: &GamepadAxisMoveEvent) -> f64;
28    #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")]
29    #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"]
34    pub fn new(type_: &str) -> Result<GamepadAxisMoveEvent, JsValue>;
35    #[cfg(feature = "GamepadAxisMoveEventInit")]
36    #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")]
37    #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`, `GamepadAxisMoveEventInit`*"]
42    pub fn new_with_event_init_dict(
43        type_: &str,
44        event_init_dict: &GamepadAxisMoveEventInit,
45    ) -> Result<GamepadAxisMoveEvent, JsValue>;
46}