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

Cursor locking issues #38

Open
peettee opened this issue Apr 1, 2021 · 1 comment
Open

Cursor locking issues #38

peettee opened this issue Apr 1, 2021 · 1 comment

Comments

@peettee
Copy link

peettee commented Apr 1, 2021

In our application we have the requirement to lock/unlock the cursor quite frequently.
As I do not want the user to constantly click on the iframe if the cursor is locked the remote application sends a cursor locking signal to the js frontend indicating that the cursor needs locking. This works fine basically, the cursor is hidden and locked as I only need an explicit user gesture the first time the cursor is locked (except if the escape key is pressed).

However the furioos player keeps displaying "click to lock cursor" in the lower right corner even if the cursor is already locked and after the cursor is locked no mouse input whatsoever is transmitted to the remote application.
Is there someway to tell the player that the cursor is locked? There are maximize()/minimize() methods but no cursor locking methods available.

The following code is executed whenever I receive a cursor lock request through the OnSDKMessage callback:

var iframe = document.getElementById("furioos-sdk-iframe");
iframe.requestPointerLock = iframe.requestPointerLock || iframe.mozRequestPointerLock ||  iframe.webkitRequestPointerLock;
iframe.requestPointerLock();
@K-MICK
Copy link
Collaborator

K-MICK commented Apr 6, 2021

Hello,

Thank you for the feedback, we will investigate the issue and keep you updated.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants