Class InputManager
The implementation for the Input Manager.
Inheritance
System.Object
InputManager
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 SourceInputManager()
Initializes a new instance of the InputManager class.
Declaration
public InputManager()
Fields
View SourceUpdateLock
Object used to lock updates to prevent skipping of inputs
Declaration
public static readonly object UpdateLock
Field Value
Type | Description |
---|---|
System.Object |
Properties
View SourceGamepadUpdateRate
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 SourceCreateGamepad(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. |
Dispose()
Disposes InputManager to finalize running update timer.
Declaration
public void Dispose()
Dispose(Boolean)
Perform finalization
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Whether to dispose managed resources |
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. |
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
System.IDisposable