GamePadLayouts Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Keeps track of GamePadLayout
System.Object →
GamePadLayouts
Derived from GamePadLayouts:
public static class GamePadLayouts
Name | Description | |
---|---|---|
Methods | ||
AddLayout(GamePadLayout) | Adds a new layout that cane be used for mapping gamepads to GamePadState |
|
FindLayout(IInputSource, IGameControllerDevice) | Finds a layout matching the given gamepad |
Methods
AddLayout(GamePadLayout)
Adds a new layout that cane be used for mapping gamepads to GamePadState
public static void AddLayout(GamePadLayout layout)
Parameters
Type | Name | Description |
---|---|---|
GamePadLayout | layout | The layout to add |
FindLayout(IInputSource, IGameControllerDevice)
Finds a layout matching the given gamepad
public static GamePadLayout FindLayout(IInputSource source, IGameControllerDevice device)
Parameters
Type | Name | Description |
---|---|---|
IInputSource | source | The source that the |
IGameControllerDevice | device | The device to find a layout for |
Returns
Type | Description |
---|---|
GamePadLayout | The gamepad layout that was found, or null if none was found |