requestPointerLock

suspend fun requestPointerLock(options: PointerLockOptions = definedExternally)(source)

The requestPointerLock() method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.

MDN Reference