nevermind, i can just pause and unpause the game to fix it, it would still be helpful for it to automatically lock the cursor though.