aboutsummaryrefslogtreecommitdiffstats
path: root/components/webvr_traits
diff options
context:
space:
mode:
Diffstat (limited to 'components/webvr_traits')
-rw-r--r--components/webvr_traits/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/webvr_traits/lib.rs b/components/webvr_traits/lib.rs
index ab31436c136..f96fee056e7 100644
--- a/components/webvr_traits/lib.rs
+++ b/components/webvr_traits/lib.rs
@@ -30,3 +30,9 @@ pub use rust_webvr_api::VRLayer as WebVRLayer;
pub use rust_webvr_api::VRMainThreadHeartbeat as WebVRMainThreadHeartbeat;
pub use rust_webvr_api::VRPose as WebVRPose;
pub use rust_webvr_api::VRStageParameters as WebVRStageParameters;
+
+#[derive(Deserialize, Serialize)]
+pub struct WebVRPoseInformation {
+ pub frame: WebVRFutureFrameData,
+ pub gamepads: Vec<(u32, WebVRGamepadState)>,
+}