Skip to content

Commit

Permalink
Add support for changing input source (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForceConstant authored Dec 27, 2024
1 parent 3b86128 commit 1d14545
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NickvisionCavalier.Shared/Models/CAVA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private void UpdateConfig()
sensitivity = {Math.Pow(Configuration.Current.Sensitivity, 2)}
[input]
method = {Environment.GetEnvironmentVariable("CAVALIER_INPUT_METHOD") ?? "pulse"}
source = {Environment.GetEnvironmentVariable("CAVALIER_INPUT_SOURCE") ?? "auto"}
[output]
method = raw
raw_target = /dev/stdout
Expand Down Expand Up @@ -130,4 +131,4 @@ private void ReadCAVAOutput()
OutputReceived?.Invoke(this, sample);
}
}
}
}

0 comments on commit 1d14545

Please sign in to comment.