mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 06:15:26 +00:00
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:
parent
cc085bfc2a
commit
19e7ed7012
14 changed files with 279 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue