Allow to lock steam controller locking files

- This locks `controller_neptune` configs when adding steam detection
- This overwrites default desktop/chord template
- This enables a desktop template
This commit is contained in:
Kamil Trzciński 2022-12-02 11:29:06 +01:00
parent cc085bfc2a
commit 19e7ed7012
14 changed files with 279 additions and 23 deletions

View file

@ -10,7 +10,7 @@ namespace SteamController.Profiles
public override bool Selected(Context context)
{
return context.Enabled && context.State.SteamUsesSteamInput;
return context.Enabled && context.State.SteamUsesSteamInput && !Settings.Default.ManageSteamControllerConfigs;
}
public override Status Run(Context context)

View file

@ -19,12 +19,12 @@ namespace SteamController.Profiles
if (context.X360.FeedbackLargeMotor.GetValueOrDefault() > 0)
{
context.Steam.SendHaptic(1, 0);
context.Steam.SendHaptic(1, HapticSettings.LeftIntensity);
}
if (context.X360.FeedbackSmallMotor.GetValueOrDefault() > 0)
{
context.Steam.SendHaptic(0, 0);
context.Steam.SendHaptic(0, HapticSettings.RightIntensity);
}
context.X360.ResetFeedback();

View file

@ -21,17 +21,6 @@ namespace SteamController.Profiles
return Status.Done;
}
#if false
if (context.X360.FeedbackLargeMotor.GetValueOrDefault() > 0)
{
context.Steam.SetHaptic2(1, 0);
}
if (context.X360.FeedbackSmallMotor.GetValueOrDefault() > 0)
{
context.Steam.SetHaptic2(0, 0);
}
#else
if (context.X360.FeedbackLargeMotor.HasValue)
{
context.Steam.SetFeedback(
@ -43,7 +32,6 @@ namespace SteamController.Profiles
context.Steam.SetFeedback(
0, GetHapticAmplitude(context.X360.FeedbackSmallMotor), RumbleSettings.Period, FeedbackCount);
}
#endif
context.X360.ResetFeedback();