mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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) {
|
||||
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();
|
||||
[Throws] void setPointerOrigin(FakeXRRigidTransformInit pointerOrigin, optional boolean emulatedPosition = false);
|
||||
|
||||
// void disconnect();
|
||||
// void reconnect();
|
||||
void disconnect();
|
||||
void reconnect();
|
||||
|
||||
// void startSelection();
|
||||
// void endSelection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue