Interface IGameControllerDevice
This interface is used for interacting with game controller devices.
public interface IGameControllerDevice : IInputDevice
- Inherited Members
- Extension Methods
Properties
AxisInfos
Information about the axes on this game controller
IReadOnlyList<GameControllerAxisInfo> AxisInfos { get; }
Property Value
ButtonInfos
Information about the buttons on this game controller
IReadOnlyList<GameControllerButtonInfo> ButtonInfos { get; }
Property Value
DirectionInfos
Information about the direction controllers on this game controller
IReadOnlyList<GameControllerDirectionInfo> DirectionInfos { get; }
Property Value
DownButtons
The buttons that are down
IReadOnlySet<int> DownButtons { get; }
Property Value
PressedButtons
The buttons that have been pressed since the last frame
IReadOnlySet<int> PressedButtons { get; }
Property Value
ProductId
Product Id of the device
Guid ProductId { get; }
Property Value
ReleasedButtons
The buttons that have been released since the last frame
IReadOnlySet<int> ReleasedButtons { get; }
Property Value
Methods
GetAxis(int)
Retrieves the state of a single axis
float GetAxis(int index)
Parameters
Returns
- float
The value read directly from the axis
GetDirection(int)
Retrieves the state of a single point of direction controller
Direction GetDirection(int index)
Parameters
index
intThe direction controller's index, as exposed in DirectionInfos
Returns
- Direction
The current state of the direction controller