mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
webxr: Update XRInputSource interface to latest spec (#33155)
* Update XRInputSource interface to latest spec Signed-off-by: Daniel Adams <msub2official@gmail.com> * Bump webxr version Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec link Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
parent
56280c6242
commit
7501e3e12f
7 changed files with 19 additions and 10 deletions
|
@ -127,6 +127,7 @@ impl XRInputSourceMethods for XRInputSource {
|
|||
TargetRayMode::Gaze => XRTargetRayMode::Gaze,
|
||||
TargetRayMode::TrackedPointer => XRTargetRayMode::Tracked_pointer,
|
||||
TargetRayMode::Screen => XRTargetRayMode::Screen,
|
||||
TargetRayMode::TransientPointer => XRTargetRayMode::Transient_pointer,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,6 +155,13 @@ impl XRInputSourceMethods for XRInputSource {
|
|||
self.profiles.get()
|
||||
}
|
||||
|
||||
/// <https://www.w3.org/TR/webxr/#dom-xrinputsource-skiprendering>
|
||||
fn SkipRendering(&self) -> bool {
|
||||
// Servo is not currently supported anywhere that would allow for skipped
|
||||
// controller rendering.
|
||||
false
|
||||
}
|
||||
|
||||
/// <https://www.w3.org/TR/webxr-gamepads-module-1/#xrinputsource-interface>
|
||||
fn GetGamepad(&self) -> Option<DomRoot<Gamepad>> {
|
||||
Some(DomRoot::from_ref(&*self.gamepad))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue