summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_Gamepad.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_Gamepad.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_Gamepad.rs')
-rw-r--r--vendor/web-sys/src/features/gen_Gamepad.rs94
1 files changed, 94 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_Gamepad.rs b/vendor/web-sys/src/features/gen_Gamepad.rs
new file mode 100644
index 000000000..7545cec16
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Gamepad.rs
@@ -0,0 +1,94 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Gamepad , typescript_type = "Gamepad")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Gamepad` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub type Gamepad;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = id)]
+ #[doc = "Getter for the `id` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn id(this: &Gamepad) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = index)]
+ #[doc = "Getter for the `index` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn index(this: &Gamepad) -> u32;
+ #[cfg(feature = "GamepadMappingType")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = mapping)]
+ #[doc = "Getter for the `mapping` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadMappingType`*"]
+ pub fn mapping(this: &Gamepad) -> GamepadMappingType;
+ #[cfg(feature = "GamepadHand")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hand)]
+ #[doc = "Getter for the `hand` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadHand`*"]
+ pub fn hand(this: &Gamepad) -> GamepadHand;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = displayId)]
+ #[doc = "Getter for the `displayId` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn display_id(this: &Gamepad) -> u32;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = connected)]
+ #[doc = "Getter for the `connected` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn connected(this: &Gamepad) -> bool;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = buttons)]
+ #[doc = "Getter for the `buttons` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn buttons(this: &Gamepad) -> ::js_sys::Array;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = axes)]
+ #[doc = "Getter for the `axes` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn axes(this: &Gamepad) -> ::js_sys::Array;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = timestamp)]
+ #[doc = "Getter for the `timestamp` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn timestamp(this: &Gamepad) -> f64;
+ #[cfg(feature = "GamepadPose")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = pose)]
+ #[doc = "Getter for the `pose` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadPose`*"]
+ pub fn pose(this: &Gamepad) -> Option<GamepadPose>;
+ # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = hapticActuators)]
+ #[doc = "Getter for the `hapticActuators` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"]
+ pub fn haptic_actuators(this: &Gamepad) -> ::js_sys::Array;
+}