Class GamePadFromLayout
A IGamePadDevice from a IGameControllerDevice using a GamePadLayout to create a mapping between the two
public abstract class GamePadFromLayout : GamePadDeviceBase, IGamePadDevice, IInputDevice
- Inheritance
-
GamePadFromLayout
- Implements
- Inherited Members
- Extension Methods
Constructors
GamePadFromLayout(InputManager, IGameControllerDevice, GamePadLayout)
Initializes a new instance of the GamePadFromLayout class.
protected GamePadFromLayout(InputManager inputManager, IGameControllerDevice controller, GamePadLayout layout)
Parameters
inputManager
InputManagercontroller
IGameControllerDevicelayout
GamePadLayout
Properties
GameControllerDevice
protected IGameControllerDevice GameControllerDevice { get; }
Property Value
InputManager
protected InputManager InputManager { get; }
Property Value
Layout
protected GamePadLayout Layout { get; }
Property Value
State
The state of the gamepad
public override GamePadState State { get; }
Property Value
Methods
Update(List<InputEvent>)
Updates the input device, filling the list inputEvents
with input events that were generated by this device this frame
public override void Update(List<InputEvent> inputEvents)
Parameters
inputEvents
List<InputEvent>A list that gets filled with input events that were generated since the last frame
Remarks
Input devices are always updated after their respective input source