Class InputViewModel
View model for Input view
Inherited Members
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class InputViewModel : TabItemViewModel<InputView>, IViewInitialize, IInputViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceInputViewModel(InputView, IWindowingControl, IEventAggregator, IPhoenixLogger)
Initializes a new instance of the InputViewModel class
Declaration
public InputViewModel(InputView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
InputView | view | Associated view connection |
IWindowingControl | windowing | |
IEventAggregator | eventAggregator | Event sink for receiving events from Phoenix |
IPhoenixLogger | logger | Logger interface for writing to Phoenix log |
Fields
View SourceName
The tab header name.
Declaration
public const string Name = "Input"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceControllerSelector
Gets the controller selector model
Declaration
public ControllerSelectorViewModel ControllerSelector { get; }
Property Value
Type | Description |
---|---|
ControllerSelectorViewModel |
CurrentDevices
Gets the current devices selected in Phoenix
Declaration
public Collection<IDevice> CurrentDevices { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<IDevice> |
InputSequencer
Gets the input sequencer model
Declaration
public InputSequencerViewModel InputSequencer { get; }
Property Value
Type | Description |
---|---|
InputSequencerViewModel |
Instance
Gets the singleton instance for easier access
Declaration
public static InputViewModel Instance { get; }
Property Value
Type | Description |
---|---|
InputViewModel |
OnscreenController
Gets the on-screen controller model
Declaration
public OnscreenControllerViewModel OnscreenController { get; }
Property Value
Type | Description |
---|---|
OnscreenControllerViewModel |
Settings
Gets the plug-in settings
Declaration
public PluginSettings Settings { get; }
Property Value
Type | Description |
---|---|
PluginSettings |
Methods
View SourceDispose(Boolean)
Perform finalization
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Whether disposing managed resources |
Finalize()
Finalizes an instance of the InputViewModel class.
Declaration
protected void Finalize()
Initialize()
Initializes phoenix managed resources after imports are satisfied.
Declaration
protected override void Initialize()
Overrides
Log(LogSeverity, String, Object[])
Log a formatted message with an associated severity
Declaration
public void Log(LogSeverity severity, string msg, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
LogSeverity | severity | LogSeverity of the message |
System.String | msg | Message to log |
System.Object[] | args | Parameters to use when formatting the message |
Log(String)
Log a message
Declaration
public void Log(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message to log |
MoveLeftTrigger(Double)
Sets the LeftTrigger
Declaration
public void MoveLeftTrigger(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
MoveRightTrigger(Double)
Sets the RightTrigger
Declaration
public void MoveRightTrigger(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
OnClosing(CancelEventArgs)
Perform plug-in shutdown
Declaration
protected override void OnClosing(CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CancelEventArgs | e | Event arguments that allow closing to be cancelled |
Overrides
PressButton(GamepadButtons)
Presses and releases buttons
Declaration
public void PressButton(GamepadButtons button)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Button to press |
ReleaseButton(GamepadButtons)
Release buttons
Declaration
public void ReleaseButton(GamepadButtons button)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Button to release |
SetLeftThumbStickX(Double)
Sets the Left Thumb Stick X
Declaration
public void SetLeftThumbStickX(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
SetLeftThumbStickY(Double)
Sets the Left Thumb Stick Y
Declaration
public void SetLeftThumbStickY(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
SetRightThumbStickX(Double)
Sets the Right Thumb Stick X
Declaration
public void SetRightThumbStickX(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
SetRightThumbStickY(Double)
Sets the Right Thumb Stick Y
Declaration
public void SetRightThumbStickY(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set to |
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()
Overrides
Events
View SourceAdjustPanelLayout
Event fired when panel layout needs to be adjusted after expanding/collapsing panels
Declaration
public event EventHandler AdjustPanelLayout
Event Type
Type | Description |
---|---|
System.EventHandler |