Show / Hide Table of Contents

Class InputManager

The implementation for the Input Manager.

Inheritance
System.Object
InputManager
Implements
IInputManager
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 InputManager : IInputManager, IDisposable

Constructors

View Source

InputManager()

Initializes a new instance of the InputManager class.

Declaration
public InputManager()

Fields

View Source

UpdateLock

Object used to lock updates to prevent skipping of inputs

Declaration
public static readonly object UpdateLock
Field Value
Type Description
System.Object

Properties

View Source

GamepadUpdateRate

Gets a value representing the update rate for sending gamepad interactions to their devices.

Declaration
public TimeSpan GamepadUpdateRate { get; }
Property Value
Type Description
System.TimeSpan

Methods

View Source

CreateGamepad(IDevice)

Creates a gamepad for the device.

Declaration
public IGamepad CreateGamepad(IDevice device)
Parameters
Type Name Description
IDevice device

The device to create a gamepad for.

Returns
Type Description
IGamepad

The new gamepad.

View Source

Dispose()

Disposes InputManager to finalize running update timer.

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 to dispose managed resources

View Source

GetGamepadsForDevice(IDevice)

Gets a collection of gamepads associated with a device.

Declaration
public IEnumerable<IGamepad> GetGamepadsForDevice(IDevice device)
Parameters
Type Name Description
IDevice device

The device.

Returns
Type Description
System.Collections.Generic.IEnumerable<IGamepad>

A collection of gamepads bound to the device.

View Source

RemoveGamepad(IGamepad)

Removes the gamepad from the device.

Declaration
public void RemoveGamepad(IGamepad gamepad)
Parameters
Type Name Description
IGamepad gamepad

The gamepad to remove.

Implements

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