Skip to content
Permalink
Browse files

Add disconnect()/reconnect()

  • Loading branch information
Manishearth committed Jan 8, 2020
1 parent e03fd0e commit 225254a6b357609129cb636d128b36d0ae4d7692
@@ -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();

0 comments on commit 225254a

Please sign in to comment.
You can’t perform that action at this time.