content::WebContentsDelegate::RequestToLockMouse(…) and
content::WebContentsDelegate::LostMouseLock() need to be overridden in
oxide::WebView (and ask the user to allow pointer lock), and
oxide::RenderWidgetHostView::LockMouse() and
oxide::RenderWidgetHostView::UnlockMouse() need to be implemented to do
the work to actually hide/show the mouse cursor (we might want to have a
look at how it’s implemented in RenderWidgetHostViewAura in chromium).

** Description changed:

  The internet archive just released a collection of Win 3.1 games, using the 
DosBox emulator to run them on the website. On Chrome this triggers a 
"Allow/Deny archive.org to disable your mouse cursor" popup. Games are only 
playable using mouse or touch after accepting this.
  In the browser app/ Oxide there's no such popup and mouse input doesn't work.
  
  https://archive.org/details/win3_Mono3Dlx
+ 
+ Another (more lightweight) example page: https://mdn.github.io/pointer-
+ lock-demo/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1544754

Title:
  implement the HTML5 pointer lock API

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1544754/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to