Show / Hide Table of Contents

Class InputViewModel

View model for Input view

Inheritance
System.Object
ViewModelBase<InputView>
TabItemViewModel<InputView>
InputViewModel
Implements
IViewInitialize
IInputViewProvider
IViewProvider
IClosingNotification
Inherited Members
TabItemViewModel<InputView>.FocusView()
TabItemViewModel<InputView>.OnViewChanged(Object, DependencyPropertyChangedEventArgs)
TabItemViewModel<InputView>.LogOnlyIfTabActive(String, String, Object[])
TabItemViewModel<InputView>.LogOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<InputView>.LogOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<InputView>.LogOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<InputView>.LoglineOnlyIfTabActive(String, String, Object[])
TabItemViewModel<InputView>.LoglineOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<InputView>.LoglineOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<InputView>.LoglineOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<InputView>.LogExceptionOnlyIfTabActive(String, LogSeverity, Exception)
TabItemViewModel<InputView>.LogCriticalExceptionOnlyIfTabActive(String, Exception)
ViewModelBase<InputView>.Closed
ViewModelBase<InputView>.IsClosable
ViewModelBase<InputView>.IsDockable
ViewModelBase<InputView>.HeaderName
ViewModelBase<InputView>.View
ViewModelBase<InputView>.IViewProvider.View
ViewModelBase<InputView>.EventAggregator
ViewModelBase<InputView>.Logger
ViewModelBase<InputView>.Closing(CancelEventArgs)
ViewModelBase<InputView>.IViewInitialize.Initialize()
ViewModelBase<InputView>.IViewInitialize.Uninitialize()
ViewModelBase<InputView>.IClosingNotification.Closed(EventArgs)
ViewModelBase<InputView>.OnClosed()
ViewModelBase<InputView>.CloseView()
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class InputViewModel : TabItemViewModel<InputView>, IViewInitialize, IInputViewProvider, IViewProvider, IClosingNotification

Constructors

View Source

InputViewModel(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 Source

Name

The tab header name.

Declaration
public const string Name = "Input"
Field Value
Type Description
System.String

Properties

View Source

ControllerSelector

Gets the controller selector model

Declaration
public ControllerSelectorViewModel ControllerSelector { get; }
Property Value
Type Description
ControllerSelectorViewModel
View Source

CurrentDevices

Gets the current devices selected in Phoenix

Declaration
public Collection<IDevice> CurrentDevices { get; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<IDevice>
View Source

InputSequencer

Gets the input sequencer model

Declaration
public InputSequencerViewModel InputSequencer { get; }
Property Value
Type Description
InputSequencerViewModel
View Source

Instance

Gets the singleton instance for easier access

Declaration
public static InputViewModel Instance { get; }
Property Value
Type Description
InputViewModel
View Source

OnscreenController

Gets the on-screen controller model

Declaration
public OnscreenControllerViewModel OnscreenController { get; }
Property Value
Type Description
OnscreenControllerViewModel
View Source

Settings

Gets the plug-in settings

Declaration
public PluginSettings Settings { get; }
Property Value
Type Description
PluginSettings

Methods

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 InputViewModel class.

Declaration
protected void Finalize()
View Source

Initialize()

Initializes phoenix managed resources after imports are satisfied.

Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Input.InputView>.Initialize()
View Source

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

View Source

Log(String)

Log a message

Declaration
public void Log(string message)
Parameters
Type Name Description
System.String message

Message to log

View Source

MoveLeftTrigger(Double)

Sets the LeftTrigger

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

Value to set to

View Source

MoveRightTrigger(Double)

Sets the RightTrigger

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

Value to set to

View Source

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
Phoenix.Views.ViewModelBase<Phoenix.Input.InputView>.OnClosing(System.ComponentModel.CancelEventArgs)
View Source

PressButton(GamepadButtons)

Presses and releases buttons

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

Button to press

View Source

ReleaseButton(GamepadButtons)

Release buttons

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 to

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 to

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 to

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 to

View Source

Uninitialize()

Uninitializes phoenix managed resources when closed.

Declaration
protected override void Uninitialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Input.InputView>.Uninitialize()

Events

View Source

AdjustPanelLayout

Event fired when panel layout needs to be adjusted after expanding/collapsing panels

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

Implements

IViewInitialize
IInputViewProvider
IViewProvider
IClosingNotification
  • View Source
In This Article
Back to top Generated by DocFX