mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Add disconnect()/reconnect()
This commit is contained in:
parent
e03fd0ef1c
commit
225254a6b3
2 changed files with 12 additions and 2 deletions
|
@ -69,4 +69,14 @@ impl FakeXRInputControllerMethods for FakeXRInputController {
|
||||||
fn ClearGripOrigin(&self) {
|
fn ClearGripOrigin(&self) {
|
||||||
self.send_message(MockInputMsg::SetGripOrigin(None))
|
self.send_message(MockInputMsg::SetGripOrigin(None))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// https://immersive-web.github.io/webxr-test-api/#dom-fakexrinputcontroller-disconnect
|
||||||
|
fn Disconnect(&self) {
|
||||||
|
self.send_message(MockInputMsg::Disconnect)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// https://immersive-web.github.io/webxr-test-api/#dom-fakexrinputcontroller-reconnect
|
||||||
|
fn Reconnect(&self) {
|
||||||
|
self.send_message(MockInputMsg::Reconnect)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,8 @@ interface FakeXRInputController {
|
||||||
void clearGripOrigin();
|
void clearGripOrigin();
|
||||||
[Throws] void setPointerOrigin(FakeXRRigidTransformInit pointerOrigin, optional boolean emulatedPosition = false);
|
[Throws] void setPointerOrigin(FakeXRRigidTransformInit pointerOrigin, optional boolean emulatedPosition = false);
|
||||||
|
|
||||||
// void disconnect();
|
void disconnect();
|
||||||
// void reconnect();
|
void reconnect();
|
||||||
|
|
||||||
// void startSelection();
|
// void startSelection();
|
||||||
// void endSelection();
|
// void endSelection();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue