GameControllerUtils Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Provides some useful functions relating to game controllers
System.Object →
GameControllerUtils
Derived from GameControllerUtils:
public static class GameControllerUtils
| Name | Description | |
|---|---|---|
| Methods | ||
| ButtonsToDirection(GamePadButton) | Converts the pad buttons of a GamePadButton to a Direction |
|
| DirectionToButtons(Direction) | Converts a Direction to a combination of GamePadButton's |
|
Methods
ButtonsToDirection(GamePadButton)
Converts the pad buttons of a GamePadButton to a Direction
public static Direction ButtonsToDirection(GamePadButton padDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| GamePadButton | padDirection |
Returns
| Type | Description |
|---|---|
| Direction |
DirectionToButtons(Direction)
Converts a Direction to a combination of GamePadButton's
public static GamePadButton DirectionToButtons(Direction direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Direction | direction |
Returns
| Type | Description |
|---|---|
| GamePadButton |