Class GameControllerExtensions
- Inheritance
-
Game
Controller Extensions
Methods
GetAxisCount(IGameControllerDevice)
Gets the number of axes on this gamepad
Parameters
device
IGameController Device The gamepad
Returns
- int
The number of axes
GetButtonCount(IGameControllerDevice)
Gets the number of buttons on this gamepad
Parameters
device
IGameController Device The gamepad
Returns
- int
The number of buttons
GetDPad(IGameControllerDevice, int)
Returns the value of a direction controller converted to a Game
Parameters
device
IGameController Device The gamepad
index
intThe index of the direction controller
Returns
GetDirectionCount(IGameControllerDevice)
Gets the number of direction inputs on this gamepad
Parameters
device
IGameController Device The gamepad
Returns
- int
The number of direction controllers