Table of Contents

Class GamePadFromLayout

Namespace
Stride.Input
Assembly
Stride.Input.dll

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 InputManager
controller IGameControllerDevice
layout GamePadLayout

Properties

GameControllerDevice

protected IGameControllerDevice GameControllerDevice { get; }

Property Value

IGameControllerDevice

InputManager

protected InputManager InputManager { get; }

Property Value

InputManager

Layout

protected GamePadLayout Layout { get; }

Property Value

GamePadLayout

State

The state of the gamepad

public override GamePadState State { get; }

Property Value

GamePadState

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