How can I use pointerlock for a HTML program I am running? I don’t know how to make extensions…
TIMAI2
October 20, 2026, 6:32pm
2
I would have a look here to see how to use pointerlock in your html:
The Pointer Lock API (formerly called Mouse Lock API) provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport. It gives you access to raw mouse movement,...
If you have this, and it is just not working on a webviewer, you could try adding:
WebViewExtra [wveicon]
An extension for AI2 that extends the features of the native webviewer.
The extension, by default, will provide the following features:
allow for uploading of files from within a webviewer. (Developers will need to provide suitable html solutions...)
allow for downloading of files from within a webviewer, even from Google Drive shared folders! Files are saved to the Download directory in Shared storage.
sets READ and WRITE in the app / aia project, enabling the setting…
or use
Download latest version here
1.Introduction
It is an extended version of web viewer with more customization and flexibility. Its customization and additional features make it different and much more better than Web Viewer from the perspective of App Developer as well as User.
Note: CustomWebView can work only on devices running on at least Android 5.0
Latest Version : 12
Required Api : 21
Released: 2020-05-12T18:30:00Z (UTC)
Last Updated: 2023-03-08T18:30:00Z (UTC)
2.Features
More customi…
Last time I posted this topic, I did not have enough time, so now I’m back again. The issue I am experiencing is even though I plug in a mouse, WebViewer html files are unable to use pointerlock (I need it for a 3D project). The device I am using is the Chromebook Emulator. I have tried the CustomWebView extension but truthfully I am not smart enough to figure out exactly how to be able to run pointerlock. I am free to edit the HTML file in any way. Thanks!
Peter
October 22, 2026, 5:54pm
4
I merged the topics. We don’t allow double posting.
TIMAI2
October 22, 2026, 6:28pm
5
Will all your users be able to "plug in a mouse" to their device?
Are you designing just to run your app in the chromebook emulator ?
Are you able to setup and use pointerlock in a web page in your browser on your computer?
Tell us more about the 3D project?
You might review this:
OK, have a working "solution": The html file, getModel.html provides an input button to select a glb file from the shared directories (Download/Documents/Pictures etc.). The selected glb file is converted to a blob, and its url is fed into the model viewer. I placed a glb file in the Download directory for testing. I used webviewextra (needed for the file input button) and a webviewer, but it should also work with customwebview.
I will leave you to play around with layout/sizing/css enhancement…
1 Like