You can pause-unpause the game to get the cursor to lock in, i tried to force it to lock but it did not work for some reason