You should look into Pointer Lock API, to prevent the cursor from hitting the screen’s edge when the player turns too much. https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
You should look into Pointer Lock API, to prevent the cursor from hitting the screen’s edge when the player turns too much. https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API