Skip to content

Commit

Permalink
Add 'Restart TAS' key
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Mar 1, 2024
1 parent f87dc9a commit 1da43f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/TAS/TASControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public static void Load()
StartStop.Clear();
StartStop.Add(Keys.RightControl);

Restart.Clear();
Restart.Add(Keys.RightBracket);

PauseResume.Clear();
PauseResume.Add(Keys.P);

Expand Down
6 changes: 6 additions & 0 deletions Source/TAS/TASMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public static void Update()
Manager.EnableRun();
}

if (TASControls.Restart.ConsumePress())
{
Manager.DisableRun();
Manager.EnableRun();
}

InfoHUD.Update();
}

Expand Down

0 comments on commit 1da43f6

Please sign in to comment.