Open
Description
https://www.pygame.org/docs/ref/event.html#pygame.event.set_grab
=> https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
set_grab(1) should issue a : window.canvas.requestPointerLock() ( awaited )
[requestPointerLock hides mouse cursor]
so use https://www.pygame.org/docs/ref/mouse.html#pygame.mouse.get_visible
if document.pointerLockElement == window.canvas:
if pygame.mouse.get_visible():
#build a default mouse cursor