Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GamePadFromLayout Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    A IGamePadDevice from a IGameControllerDevice using a GamePadLayout to create a mapping between the two

    System.Object → GamePadDeviceBase → GamePadFromLayout
    Derived from GamePadFromLayout:

    public abstract class GamePadFromLayout : GamePadDeviceBase, IGamePadDevice, IInputDevice
    Name Description
    Constructors
    GamePadFromLayout(InputManager, IGameControllerDevice, GamePadLayout)

    Initializes a new instance of the GamePadFromLayout class.

    Properties
    GameControllerDevice
    InputManager
    Layout
    State
    Methods
    Update(List<InputEvent>)
    | Improve this Doc View Source

    Constructors


    GamePadFromLayout(InputManager, IGameControllerDevice, GamePadLayout)

    Initializes a new instance of the GamePadFromLayout class.

    protected GamePadFromLayout(InputManager inputManager, IGameControllerDevice controller, GamePadLayout layout)
    Parameters
    Type Name Description
    InputManager inputManager
    IGameControllerDevice controller
    GamePadLayout layout
    | Improve this Doc View Source

    Properties


    GameControllerDevice

    protected IGameControllerDevice GameControllerDevice { get; }
    Property Value
    Type Description
    IGameControllerDevice

    InputManager

    protected InputManager InputManager { get; }
    Property Value
    Type Description
    InputManager

    Layout

    protected GamePadLayout Layout { get; }
    Property Value
    Type Description
    GamePadLayout

    State

    public override GamePadState State { get; }
    Property Value
    Type Description
    GamePadState
    Overrides
    GamePadDeviceBase.State
    | Improve this Doc View Source

    Methods


    Update(List<InputEvent>)

    public override void Update(List<InputEvent> inputEvents)
    Parameters
    Type Name Description
    System.Collections.Generic.List<InputEvent> inputEvents
    Overrides
    GamePadDeviceBase.Update(List<InputEvent>)

    Inherited Members

    GamePadDeviceBase.Name
    GamePadDeviceBase.Id
    GamePadDeviceBase.ProductId
    GamePadDeviceBase.CanChangeIndex
    GamePadDeviceBase.Priority
    GamePadDeviceBase.Index
    GamePadDeviceBase.PressedButtons
    GamePadDeviceBase.ReleasedButtons
    GamePadDeviceBase.DownButtons
    GamePadDeviceBase.Source
    GamePadDeviceBase.IndexChanged
    GamePadDeviceBase.SetVibration(Single, Single, Single, Single)
    GamePadDeviceBase.SetIndexInternal(Int32, Boolean)
    GamePadDeviceBase.ClearButtonStates()
    GamePadDeviceBase.UpdateButtonState(GamePadButtonEvent)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    GamePadDeviceExtensions.SetVibration(IGamePadDevice, Single)
    GamePadDeviceExtensions.SetVibration(IGamePadDevice, Single, Single)
    GamePadDeviceExtensions.IsButtonPressed(IGamePadDevice, GamePadButton)
    GamePadDeviceExtensions.IsButtonReleased(IGamePadDevice, GamePadButton)
    GamePadDeviceExtensions.IsButtonDown(IGamePadDevice, GamePadButton)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation