Class GamePadLayouts
Keeps track of GamePadLayout
public static class GamePadLayouts
- Inheritance
-
GamePadLayouts
Methods
AddLayout(GamePadLayout)
Adds a new layout that cane be used for mapping gamepads to GamePadState
public static void AddLayout(GamePadLayout layout)
Parameters
layout
GamePadLayoutThe layout to add
FindLayout(IInputSource, IGameControllerDevice)
Finds a layout matching the given gamepad
public static GamePadLayout FindLayout(IInputSource source, IGameControllerDevice device)
Parameters
source
IInputSourceThe source that the
device
came fromdevice
IGameControllerDeviceThe device to find a layout for
Returns
- GamePadLayout
The gamepad layout that was found, or null if none was found