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
Auto Enter WebXR #1085
base: main
Are you sure you want to change the base?
Auto Enter WebXR #1085
Conversation
First of all thanks for the contributions, they're very much appreciated. I know it's still a draft so I understand you still plan to make more changes. I've just quickly skimmed through it and have a few general comments:
Then I'd also like to talk about the suggested changes:
|
Hi Svillar, we appreciate you taking the time to take a peak at the PR. Also, as a developer, I really appreciate the feedback and tips you provided above. I'll take them on board and work on improving in the areas you have mentioned. To answer your questions:
Once again, thanks for taking a look at that and providing your feedback. It is invaluable to me as a developer and to us as a team. Looking forward to further discussion! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have build errors here https://github.com/Igalia/wolvic/actions/runs/7025353066/job/19171930466?pr=1085
Looks like we need to resolve the conflicts between this branch and main before we can run CI again. |
@MikeEvansSkillsVR Did you consider other alternatives, instead of simulating touch events in this way? Perhaps we could find the button by ID and trigger the Something like this: var iframe = document.getElementById( 'game-frame' );
if (iframe && iframe.contentWindow && iframe.contentDocument) {
var button = iframe.contentDocument.getElementById( 'start-btn' );
if (button) {
var clickEvent = new MouseEvent('click', {
'view': iframe.contentWindow,
'bubbles': true,
'cancelable': true
});
button.dispatchEvent(clickEvent);
}
} This strategy currently returns an error ( |
Features:
Works by simulating touch events on the screen to find the Enter VR button