Make mouse lock less aggressive by disabling it when game is not focused

This commit is contained in:
Jens Pitkänen 2020-08-10 02:31:20 +03:00
parent 2dcea14729
commit 9d491d34de

View File

@ -64,7 +64,7 @@ namespace NeonTea.Quakeball.Players {
} }
private void Update() { private void Update() {
if (DisableInput > 0) { if (DisableInput > 0 || !Application.isFocused) {
CrouchAction.Disable(); CrouchAction.Disable();
JumpAction.Disable(); JumpAction.Disable();
LookAction.Disable(); LookAction.Disable();