Class GameControllerExtensions
public static class GameControllerExtensions
- Inheritance
-
GameControllerExtensions
Methods
GetAxisCount(IGameControllerDevice)
Gets the number of axes on this gamepad
public static int GetAxisCount(this IGameControllerDevice device)
Parameters
device
IGameControllerDeviceThe gamepad
Returns
- int
The number of axes
GetButtonCount(IGameControllerDevice)
Gets the number of buttons on this gamepad
public static int GetButtonCount(this IGameControllerDevice device)
Parameters
device
IGameControllerDeviceThe gamepad
Returns
- int
The number of buttons
GetDPad(IGameControllerDevice, int)
Returns the value of a direction controller converted to a GamePadButton which has the matching Pad flags set
public static GamePadButton GetDPad(this IGameControllerDevice device, int index)
Parameters
device
IGameControllerDeviceThe gamepad
index
intThe index of the direction controller
Returns
GetDirectionCount(IGameControllerDevice)
Gets the number of direction inputs on this gamepad
public static int GetDirectionCount(this IGameControllerDevice device)
Parameters
device
IGameControllerDeviceThe gamepad
Returns
- int
The number of direction controllers