Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GamePadLayouts Class

    Namespace: Stride.Input
    Assembly: 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

    | Improve this Doc View Source

    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 device came from

    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


    • Improve this Doc
    • View Source
    In This Article

    Back to top

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