Interface IInputManager
The interface to the input manager.
Namespace: Phoenix.Input
Assembly: Phoenix.Abstractions.Input.dll
Syntax
public interface IInputManager
Properties
View SourceGamepadUpdateRate
Gets a value representing the update rate for sending gamepad interactions to their devices.
Declaration
TimeSpan GamepadUpdateRate { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
View SourceCreateGamepad(IDevice)
Creates a gamepad for the device.
Declaration
IGamepad CreateGamepad(IDevice device)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device to create a gamepad for. |
Returns
Type | Description |
---|---|
IGamepad | The new gamepad. |
GetGamepadsForDevice(IDevice)
Gets a collection of gamepads associated with a device.
Declaration
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
void RemoveGamepad(IGamepad gamepad)
Parameters
Type | Name | Description |
---|---|---|
IGamepad | gamepad | The gamepad to remove. |