Test the Pointer Lock API: capture mouse input and track movement deltas.
Test the Pointer Lock API. Lock the pointer to a target element and track mouse movement deltas.
Click to lock pointer
Press Esc to release