Class OnscreenControllerViewModel
View model for on-screen interactive controller
Inheritance
Implements
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class OnscreenControllerViewModel : BindableBase, IDisposable
Constructors
View SourceOnscreenControllerViewModel(InputViewModel)
Initializes a new instance of the OnscreenControllerViewModel class
Declaration
public OnscreenControllerViewModel(InputViewModel parent)
Parameters
Type | Name | Description |
---|---|---|
InputViewModel | parent | Parent to initialize with |
Properties
View SourceIsCollapsed
Gets or sets a value indicating whether the panel is collapsed
Declaration
public bool IsCollapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsExpanded
Gets a value indicating whether the panel is expanded
Declaration
public bool IsExpanded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsGamepadConnected
Gets a value indicating whether gamepad is connected to PC
Declaration
public bool IsGamepadConnected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastActionDescription
Gets the last action description
Declaration
public string LastActionDescription { get; }
Property Value
Type | Description |
---|---|
System.String |
LastActionName
Gets the last action name
Declaration
public string LastActionName { get; }
Property Value
Type | Description |
---|---|
System.String |
ParentModel
Gets the parent view model
Declaration
public InputViewModel ParentModel { get; }
Property Value
Type | Description |
---|---|
InputViewModel |
ShowHorizontalHeader
Gets a value indicating whether the panel is collapsed horizontally
Declaration
public bool ShowHorizontalHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowVerticalHeader
Gets a value indicating whether the panel is collapsed vertically
Declaration
public bool ShowVerticalHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceDispose()
Handle object finalization
Declaration
public void Dispose()
Dispose(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 OnscreenControllerViewModel class.
Declaration
protected void Finalize()
MoveLeftThumbStick(Double, Double, Boolean)
Move left thumb stick
Declaration
public void MoveLeftThumbStick(double thumbX, double thumbY, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | thumbX | Absolute X thumb stick value |
System.Double | thumbY | Absolute Y thumb stick value |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
MoveLeftTrigger(Double, Boolean)
Move left trigger
Declaration
public void MoveLeftTrigger(double value, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Absolute left trigger value |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
MoveRightThumbStick(Double, Double, Boolean)
Move right thumb stick
Declaration
public void MoveRightThumbStick(double thumbX, double thumbY, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | thumbX | Absolute X thumb stick value |
System.Double | thumbY | Absolute Y thumb stick value |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
MoveRightTrigger(Double, Boolean)
Move right trigger
Declaration
public void MoveRightTrigger(double value, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Absolute right trigger value |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
PressButton(GamepadButtons, Boolean)
Press a button
Declaration
public void PressButton(GamepadButtons button, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Button to press |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
ReleaseButton(GamepadButtons, Boolean)
Release a button
Declaration
public void ReleaseButton(GamepadButtons button, bool actuate)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Button to release |
System.Boolean | actuate | Whether to move on-screen controller based on PC gamepad |
Events
View SourceActuateButton
Event handler for actuating button press and release in response to gamepad connected to PC
Declaration
public event EventHandler ActuateButton
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateLThumbX
Event handler for actuating left thumb X in response to gamepad connected to PC
Declaration
public event EventHandler ActuateLThumbX
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateLThumbY
Event handler for actuating left thumb Y in response to gamepad connected to PC
Declaration
public event EventHandler ActuateLThumbY
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateLTrigger
Event handler for actuating left trigger in response to gamepad connected to PC
Declaration
public event EventHandler ActuateLTrigger
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateRThumbX
Event handler for actuating right thumb X in response to gamepad connected to PC
Declaration
public event EventHandler ActuateRThumbX
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateRThumbY
Event handler for actuating right thumb Y in response to gamepad connected to PC
Declaration
public event EventHandler ActuateRThumbY
Event Type
Type | Description |
---|---|
System.EventHandler |
ActuateRTrigger
Event handler for actuating right trigger in response to gamepad connected to PC
Declaration
public event EventHandler ActuateRTrigger
Event Type
Type | Description |
---|---|
System.EventHandler |