aboutsummaryrefslogtreecommitdiffstats
path: root/components/webvr_traits
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-04-23 10:16:56 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-05-03 14:37:41 -0700
commitc1a8605c3dbce636a605b805fe89cdf0ad1923be (patch)
tree9bdbc132bbf5950b4b87af3bf0c6ed86d98dde79 /components/webvr_traits
parent623507187b4e8edb65d0a7135be9473f63838a75 (diff)
downloadservo-c1a8605c3dbce636a605b805fe89cdf0ad1923be.tar.gz
servo-c1a8605c3dbce636a605b805fe89cdf0ad1923be.zip
Allow webvr thread consumers to request input data
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)>,
+}