Skip to content

Commit

Permalink
Increase default and minimum hold time
Browse files Browse the repository at this point in the history
  • Loading branch information
VolcanicArts committed Aug 12, 2024
1 parent e64f7af commit 40520cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VRCOSC.Modules/Keybinds/KeybindsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected override async void OnAnyParameterReceived(ReceivedParameter parameter
{
if (keybindsInstance.ParameterNames.Select(parameterNames => parameterNames.Value).Contains(parameter.Name))
{
var holdTime = Math.Max(10, keybindsInstance.HoldTime.Value);
var holdTime = Math.Max(25, keybindsInstance.HoldTime.Value);

foreach (var keybind in keybindsInstance.Keybinds)
{
Expand Down
2 changes: 1 addition & 1 deletion VRCOSC.Modules/Keybinds/KeybindsModuleSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class KeybindsInstance : ICloneable, IEquatable<KeybindsInstance>
public Observable<string> Name { get; set; } = new("New Keybind");

[JsonProperty("hold_time")]
public Observable<int> HoldTime { get; set; } = new(20);
public Observable<int> HoldTime { get; set; } = new(50);

[JsonProperty("parameter_names")]
public ObservableCollection<Observable<string>> ParameterNames { get; set; } = [];
Expand Down

0 comments on commit 40520cd

Please sign in to comment.