requestPointerLock

inline suspend fun Element.requestPointerLock(options: PointerLockOptions)(source)
inline suspend fun Element.requestPointerLock()(source)

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

MDN Reference