mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
24 lines
532 B
C#
24 lines
532 B
C#
using System.Diagnostics;
|
|
using SteamController.Helpers;
|
|
|
|
namespace SteamController.Managers
|
|
{
|
|
public sealed class ProfileSwitcher : Manager
|
|
{
|
|
private Context.ContextState wasState;
|
|
|
|
public override void Tick(Context context)
|
|
{
|
|
if (wasState.Equals(context.State))
|
|
return;
|
|
|
|
if (context.State.IsActive)
|
|
context.SelectController();
|
|
else
|
|
context.BackToDefault();
|
|
|
|
wasState = context.State;
|
|
}
|
|
}
|
|
}
|