Table of Contents

Class GameControllerUtils

Namespace
Stride.Input
Assembly
Stride.Input.dll

Provides some useful functions relating to game controllers

public static class GameControllerUtils
Inheritance
GameControllerUtils

Methods

ButtonsToDirection(GamePadButton)

Converts the pad buttons of a GamePadButton to a Direction

public static Direction ButtonsToDirection(GamePadButton padDirection)

Parameters

padDirection GamePadButton

Returns

Direction

DirectionToButtons(Direction)

Converts a Direction to a combination of GamePadButton's

public static GamePadButton DirectionToButtons(Direction direction)

Parameters

direction Direction

Returns

GamePadButton