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
|
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockController , typescript_type = "VRMockController")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `VrMockController` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `VrMockController`*"]
pub type VrMockController;
# [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newAxisMoveEvent)]
#[doc = "The `newAxisMoveEvent()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newAxisMoveEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `VrMockController`*"]
pub fn new_axis_move_event(this: &VrMockController, axis: u32, value: f64);
# [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newButtonEvent)]
#[doc = "The `newButtonEvent()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newButtonEvent)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `VrMockController`*"]
pub fn new_button_event(this: &VrMockController, button: u32, pressed: bool);
# [wasm_bindgen (method , structural , js_class = "VRMockController" , js_name = newPoseMove)]
#[doc = "The `newPoseMove()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newPoseMove)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `VrMockController`*"]
pub fn new_pose_move(
this: &VrMockController,
position: Option<&mut [f32]>,
linear_velocity: Option<&mut [f32]>,
linear_acceleration: Option<&mut [f32]>,
orientation: Option<&mut [f32]>,
angular_velocity: Option<&mut [f32]>,
angular_acceleration: Option<&mut [f32]>,
);
}
|