diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-04-23 10:16:56 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-05-03 14:37:41 -0700 |
commit | c1a8605c3dbce636a605b805fe89cdf0ad1923be (patch) | |
tree | 9bdbc132bbf5950b4b87af3bf0c6ed86d98dde79 /components/webvr_traits | |
parent | 623507187b4e8edb65d0a7135be9473f63838a75 (diff) | |
download | servo-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.rs | 6 |
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)>, +} |