Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input mocking, input sources change event #25463

Merged
merged 15 commits into from Jan 9, 2020

Add disconnect()/reconnect()

  • Loading branch information
Manishearth committed Jan 9, 2020
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();
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.