Show / Hide Table of Contents

Class InputSequencerViewModel

View model for input sequencer (recorder, player, viewer and editor)

Inheritance
System.Object
InputSequencerViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class InputSequencerViewModel : INotifyPropertyChanged, IDisposable

Constructors

View Source

InputSequencerViewModel(InputViewModel)

Initializes a new instance of the InputSequencerViewModel class

Declaration
public InputSequencerViewModel(InputViewModel parent)
Parameters
Type Name Description
InputViewModel parent

Parent to initialize with

Properties

View Source

Clear

Gets or sets the Clear command

Declaration
public DelegateCommand Clear { get; set; }
Property Value
Type Description
DelegateCommand
View Source

ClearRecent

Gets or sets the Clear Recent command run from recent file list on Open button menu

Declaration
public DelegateCommand ClearRecent { get; set; }
Property Value
Type Description
DelegateCommand
View Source

Document

Gets the document for view to work with

Declaration
public Sequence Document { get; }
Property Value
Type Description
Sequence
View Source

DocumentName

Gets the name of current document for display in UI

Declaration
public string DocumentName { get; }
Property Value
Type Description
System.String
View Source

IsCollapsed

Gets or sets a value indicating whether the panel is collapsed

Declaration
public bool IsCollapsed { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsDirty

Gets or sets a value indicating whether input script hasn't been saved

Declaration
public bool IsDirty { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsExpanded

Gets a value indicating whether the panel is expanded

Declaration
public bool IsExpanded { get; }
Property Value
Type Description
System.Boolean
View Source

IsLooping

Gets or sets a value indicating whether the sequence will loop

Declaration
public bool IsLooping { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsPlaying

Gets a value indicating whether the sequence is playing

Declaration
public bool IsPlaying { get; }
Property Value
Type Description
System.Boolean
View Source

IsRecording

Gets a value indicating whether sequencer is currently recording

Declaration
public bool IsRecording { get; }
Property Value
Type Description
System.Boolean
View Source

JumpNextComment

Gets or sets the jump to next comment command

Declaration
public DelegateCommand JumpNextComment { get; set; }
Property Value
Type Description
DelegateCommand
View Source

JumpPreviousComment

Gets or sets the jump to previous comment command

Declaration
public DelegateCommand JumpPreviousComment { get; set; }
Property Value
Type Description
DelegateCommand
View Source

Keyboard

Gets or sets the command to display keyboard simulation dialog

Declaration
public DelegateCommand Keyboard { get; set; }
Property Value
Type Description
DelegateCommand
View Source

LastComment

Gets or sets a value with last comment from current position

Declaration
public string LastComment { get; set; }
Property Value
Type Description
System.String
View Source

Open

Gets or sets the Open command

Declaration
public DelegateCommand Open { get; set; }
Property Value
Type Description
DelegateCommand
View Source

OpenContextMenuItems

Gets the menu items from Open context menu

Declaration
public ObservableCollection<MenuItem> OpenContextMenuItems { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.MenuItem>
View Source

OpenRecent

Gets or sets the Open Recent command run from recent file list on Open button menu

Declaration
public DelegateCommand<string> OpenRecent { get; set; }
Property Value
Type Description
DelegateCommand<System.String>
View Source

Pause

Gets or sets the Pause command

Declaration
public DelegateCommand Pause { get; set; }
Property Value
Type Description
DelegateCommand
View Source

Play

Gets or sets the Play command

Declaration
public DelegateCommand Play { get; set; }
Property Value
Type Description
DelegateCommand
View Source

PlaybackStatus

Gets the playback status to display

Declaration
public string PlaybackStatus { get; }
Property Value
Type Description
System.String
View Source

Record

Gets or sets the Record command

Declaration
public DelegateCommand Record { get; set; }
Property Value
Type Description
DelegateCommand
View Source

Redo

Gets or sets the redo command

Declaration
public DelegateCommand Redo { get; set; }
Property Value
Type Description
DelegateCommand
View Source

RedoContextMenuItems

Gets the menu items for Redo context menu

Declaration
public ObservableCollection<RevisionTarget> RedoContextMenuItems { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<RevisionTarget>
View Source

RevertRevision

Gets or sets the revert revision command

Declaration
public DelegateCommand<int?> RevertRevision { get; set; }
Property Value
Type Description
DelegateCommand<System.Nullable<System.Int32>>
View Source

Save

Gets or sets the Save command

Declaration
public DelegateCommand Save { get; set; }
Property Value
Type Description
DelegateCommand
View Source

SaveAs

Gets or sets the Save As command

Declaration
public DelegateCommand SaveAs { get; set; }
Property Value
Type Description
DelegateCommand
View Source

ShowComment

Gets or sets a value indicating whether to display comment bar with last comment

Declaration
public bool ShowComment { get; set; }
Property Value
Type Description
System.Boolean
View Source

Stop

Gets or sets the Stop command

Declaration
public DelegateCommand Stop { get; set; }
Property Value
Type Description
DelegateCommand
View Source

StopKeyboard

Gets or sets the command to stop real time keyboard simulation

Declaration
public DelegateCommand StopKeyboard { get; set; }
Property Value
Type Description
DelegateCommand
View Source

TakeScreenshotAsync

Gets or sets the callback fired when view model wants view to get a screenshot of the sequence

Declaration
public Func<DateTime, Task<BitmapSource>> TakeScreenshotAsync { get; set; }
Property Value
Type Description
System.Func<System.DateTime, System.Threading.Tasks.Task<System.Windows.Media.Imaging.BitmapSource>>
View Source

Undo

Gets or sets the undo command

Declaration
public DelegateCommand Undo { get; set; }
Property Value
Type Description
DelegateCommand
View Source

UndoContextMenuItems

Gets the menu items for Undo context menu

Declaration
public ObservableCollection<RevisionTarget> UndoContextMenuItems { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<RevisionTarget>
View Source

ViewDispatcher

Gets or sets the view dispatcher

Declaration
public Dispatcher ViewDispatcher { get; set; }
Property Value
Type Description
System.Windows.Threading.Dispatcher

Methods

View Source

CreateSequence(String)

Creates a blank sequence or loads an existing sequence from file, setting up tracks for Xbox Input

Declaration
public Sequence CreateSequence(string path)
Parameters
Type Name Description
System.String path

Path to load from, or null/empty string to create a blank one

Returns
Type Description
Sequence

Sequence created

View Source

Dispose()

Releases resources

Declaration
public void Dispose()
View Source

Dispose(Boolean)

Perform finalization

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Whether disposing managed resources

View Source

Finalize()

Finalizes an instance of the InputSequencerViewModel class.

Declaration
protected void Finalize()
View Source

MoveLeftTrigger(Double)

Sets the Left Trigger

Declaration
public void MoveLeftTrigger(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

MoveRightTrigger(Double)

Sets the Right Trigger

Declaration
public void MoveRightTrigger(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

OnClosing(CancelEventArgs)

Handle application closure

Declaration
public void OnClosing(CancelEventArgs cancelArgs)
Parameters
Type Name Description
System.ComponentModel.CancelEventArgs cancelArgs

Event arguments

View Source

PressButton(GamepadButtons)

Presses a button

Declaration
public void PressButton(GamepadButtons button)
Parameters
Type Name Description
GamepadButtons button

Buttons to press and release

View Source

ReleaseButton(GamepadButtons)

Release a button

Declaration
public void ReleaseButton(GamepadButtons button)
Parameters
Type Name Description
GamepadButtons button

Button to release

View Source

SetLeftThumbStickX(Double)

Sets the Left Thumb Stick X

Declaration
public void SetLeftThumbStickX(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

SetLeftThumbStickY(Double)

Sets the Left Thumb Stick Y

Declaration
public void SetLeftThumbStickY(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

SetRightThumbStickX(Double)

Sets the Right Thumb Stick X

Declaration
public void SetRightThumbStickX(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

SetRightThumbStickY(Double)

Sets the Right Thumb Stick Y

Declaration
public void SetRightThumbStickY(double value)
Parameters
Type Name Description
System.Double value

Value to set

View Source

SimulateKeyboard(String, Boolean, Boolean, Double, Double)

Simulate text input to on-screen keyboard

Declaration
public void SimulateKeyboard(string text, bool insert, bool pressEnter, double buttonPressTime, double actionWaitTime)
Parameters
Type Name Description
System.String text

Text to enter

System.Boolean insert

Whether to insert into sequence at current position or play back in real-time

System.Boolean pressEnter

Whether to press enter after entering text

System.Double buttonPressTime

Time to wait between button press and release

System.Double actionWaitTime

Time to wait between button presses

Events

View Source

EnsurePositionVisible

Event fired when view model wants view to ensure current position is visible

Declaration
public event EventHandler EnsurePositionVisible
Event Type
Type Description
System.EventHandler
View Source

PropertyChanged

Property changed event required for INotifyPropertyChanged support

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler
View Source

ShowKeyboard

Event fired when view model wants view to show keyboard simulation dialog

Declaration
public event EventHandler ShowKeyboard
Event Type
Type Description
System.EventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable
  • View Source
In This Article
Back to top Generated by DocFX