Make mouse lock less aggressive by disabling it when game is not focused
This commit is contained in:
parent
2dcea14729
commit
9d491d34de
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user