mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement Gamepad API
This commit is contained in:
parent
69eda6a60c
commit
0158b5b2af
27 changed files with 1193 additions and 96 deletions
|
@ -15,10 +15,11 @@ pub enum WebVRMsg {
|
|||
UnregisterContext(PipelineId),
|
||||
PollEvents(IpcSender<bool>),
|
||||
GetDisplays(IpcSender<WebVRResult<Vec<VRDisplayData>>>),
|
||||
GetFrameData(PipelineId, u64, f64, f64, IpcSender<WebVRResult<VRFrameData>>),
|
||||
ResetPose(PipelineId, u64, IpcSender<WebVRResult<VRDisplayData>>),
|
||||
RequestPresent(PipelineId, u64, IpcSender<WebVRResult<()>>),
|
||||
ExitPresent(PipelineId, u64, Option<IpcSender<WebVRResult<()>>>),
|
||||
CreateCompositor(u64),
|
||||
GetFrameData(PipelineId, u32, f64, f64, IpcSender<WebVRResult<VRFrameData>>),
|
||||
ResetPose(PipelineId, u32, IpcSender<WebVRResult<VRDisplayData>>),
|
||||
RequestPresent(PipelineId, u32, IpcSender<WebVRResult<()>>),
|
||||
ExitPresent(PipelineId, u32, Option<IpcSender<WebVRResult<()>>>),
|
||||
CreateCompositor(u32),
|
||||
GetGamepads(Vec<u32>, IpcSender<WebVRResult<Vec<(Option<VRGamepadData>, VRGamepadState)>>>),
|
||||
Exit,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue