Table of Contents

Class GameControllerExtensions

Namespace
Stride.Input
Assembly
Stride.Input.dll
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 IGameControllerDevice

The 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 IGameControllerDevice

The 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 IGameControllerDevice

The gamepad

index int

The index of the direction controller

Returns

GamePadButton

GetDirectionCount(IGameControllerDevice)

Gets the number of direction inputs on this gamepad

public static int GetDirectionCount(this IGameControllerDevice device)

Parameters

device IGameControllerDevice

The gamepad

Returns

int

The number of direction controllers