mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Allow webvr thread consumers to request input data
This commit is contained in:
parent
623507187b
commit
c1a8605c3d
4 changed files with 39 additions and 11 deletions
|
@ -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)>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue