pointerLockApi issue

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

pointerLockApi issue

Postby Mercurio » Fri Dec 18, 2020 8:14 am

Hi there,
this is my CEF build:

Version: CEF 73.1.11+ge6986dc+chromium-73.0.3683.75
OS: Windows 7 64bit

I'm working on a project using BABYLONJS and i'm facing a problem with the pointerLockApi: https://developer.mozilla.org/en-US/doc ... r_Lock_API
In particular it seems that the pointer is never being locked: if i use the pointerLock on a canvas
Code: Select all
canvas.requestPointerLock = canvas.requestPointerLock ||
                            canvas.mozRequestPointerLock;

canvas.requestPointerLock()


then if i check if there are elements that have locked the pointer the result is always null

Code: Select all
document.pointerLockElement


I've tryied also the last build of Chromium and i get the same result.
What could be the problem?
Thank you in advance.
Mercurio
Newbie
 
Posts: 2
Joined: Fri Dec 18, 2020 6:56 am

Re: pointerLockApi issue

Postby magreenblatt » Fri Dec 18, 2020 9:47 am

The pointer lock API is not yet supported. If you build a current CEF/Chromium version from source you can try the PR at https://bitbucket.org/chromiumembedded/ ... k-api/diff
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: pointerLockApi issue

Postby Mercurio » Mon Dec 21, 2020 4:23 am

Thank you for your quick reply.
Best regards ;)
Mercurio
Newbie
 
Posts: 2
Joined: Fri Dec 18, 2020 6:56 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 74 guests