Show / Hide Table of Contents

Class OnscreenControllerViewModel

View model for on-screen interactive controller

Inheritance
System.Object
OnscreenControllerViewModel
Implements
System.IDisposable
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class OnscreenControllerViewModel : BindableBase, IDisposable

Constructors

View Source

OnscreenControllerViewModel(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 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

IsExpanded

Gets a value indicating whether the panel is expanded

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

IsGamepadConnected

Gets a value indicating whether gamepad is connected to PC

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

LastActionDescription

Gets the last action description

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

LastActionName

Gets the last action name

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

ParentModel

Gets the parent view model

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

ShowHorizontalHeader

Gets a value indicating whether the panel is collapsed horizontally

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

ShowVerticalHeader

Gets a value indicating whether the panel is collapsed vertically

Declaration
public bool ShowVerticalHeader { get; }
Property Value
Type Description
System.Boolean

Methods

View Source

Dispose()

Handle object finalization

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

Declaration
protected void Finalize()
View Source

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

View Source

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

View Source

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

View Source

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

View Source

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

View Source

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 Source

ActuateButton

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
View Source

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
View Source

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
View Source

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
View Source

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
View Source

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
View Source

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

Implements

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