Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GameControllerUtils Class

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

    Provides some useful functions relating to game controllers

    System.Object → GameControllerUtils
    Derived from GameControllerUtils:

    public static class GameControllerUtils
    Name Description
    Methods
    ButtonsToDirection(GamePadButton)

    Converts the pad buttons of a GamePadButton to a Direction

    DirectionToButtons(Direction)

    Converts a Direction to a combination of GamePadButton's

    | Improve this Doc View Source

    Methods


    ButtonsToDirection(GamePadButton)

    Converts the pad buttons of a GamePadButton to a Direction

    public static Direction ButtonsToDirection(GamePadButton padDirection)
    Parameters
    Type Name Description
    GamePadButton padDirection
    Returns
    Type Description
    Direction

    DirectionToButtons(Direction)

    Converts a Direction to a combination of GamePadButton's

    public static GamePadButton DirectionToButtons(Direction direction)
    Parameters
    Type Name Description
    Direction direction
    Returns
    Type Description
    GamePadButton

    • Improve this Doc
    • View Source
    In This Article

    Back to top

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