Skip to content

Commit

Permalink
add automation for aux select
Browse files Browse the repository at this point in the history
  • Loading branch information
holycrossav committed Jan 9, 2021
1 parent 6b7f907 commit 45bb61c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Integrated Presenter/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,12 @@ await Task.Run(async () =>
switcherManager?.PerformProgramSelect(task.DataI);
});
break;
case AutomationActionType.AuxSelect:
Dispatcher.Invoke(() =>
{
switcherManager?.PerformAuxSelect(task.DataI);
});
break;
case AutomationActionType.AutoTrans:
Dispatcher.Invoke(() =>
{
Expand Down
5 changes: 5 additions & 0 deletions Integrated Presenter/Presentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ public static AutomationAction Parse(string command)
a.Action = AutomationActionType.ProgramSelect;
a.DataI = Convert.ToInt32(arg1);
break;
case "AuxSelect":
a.Action = AutomationActionType.AuxSelect;
a.DataI = Convert.ToInt32(arg1);
break;
case "DelayMs":
a.Action = AutomationActionType.DelayMs;
a.DataI = Convert.ToInt32(arg1);
Expand Down Expand Up @@ -477,6 +481,7 @@ public enum AutomationActionType
RestartMedia,
MuteMedia,
UnMuteMedia,
AuxSelect,
}


Expand Down

0 comments on commit 45bb61c

Please sign in to comment.