Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GamePadSimulated Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll
    System.Object → GamePadDeviceBase → GamePadSimulated
    Derived from GamePadSimulated:

    public class GamePadSimulated : GamePadDeviceBase, IGamePadDevice, IInputDevice
    Name Description
    Constructors
    GamePadSimulated(InputSourceSimulated)
    Properties
    Id
    Name
    ProductId
    Source
    State
    Methods
    SetAxis(GamePadAxis, Single)
    SetButton(GamePadButton, Boolean)
    SetVibration(Single, Single, Single, Single)
    Update(List<InputEvent>)
    | Improve this Doc View Source

    Constructors


    GamePadSimulated(InputSourceSimulated)

    public GamePadSimulated(InputSourceSimulated source)
    Parameters
    Type Name Description
    InputSourceSimulated source
    | Improve this Doc View Source

    Properties


    Id

    public override Guid Id { get; }
    Property Value
    Type Description
    System.Guid
    Overrides
    GamePadDeviceBase.Id

    Name

    public override string Name { get; }
    Property Value
    Type Description
    System.String
    Overrides
    GamePadDeviceBase.Name

    ProductId

    public override Guid ProductId { get; }
    Property Value
    Type Description
    System.Guid
    Overrides
    GamePadDeviceBase.ProductId

    Source

    public override IInputSource Source { get; }
    Property Value
    Type Description
    IInputSource
    Overrides
    GamePadDeviceBase.Source

    State

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

    Methods


    SetAxis(GamePadAxis, Single)

    public void SetAxis(GamePadAxis axis, float value)
    Parameters
    Type Name Description
    GamePadAxis axis
    System.Single value

    SetButton(GamePadButton, Boolean)

    public void SetButton(GamePadButton button, bool state)
    Parameters
    Type Name Description
    GamePadButton button
    System.Boolean state

    SetVibration(Single, Single, Single, Single)

    public override void SetVibration(float smallLeft, float smallRight, float largeLeft, float largeRight)
    Parameters
    Type Name Description
    System.Single smallLeft
    System.Single smallRight
    System.Single largeLeft
    System.Single largeRight
    Overrides
    GamePadDeviceBase.SetVibration(Single, Single, Single, Single)

    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.CanChangeIndex
    GamePadDeviceBase.Priority
    GamePadDeviceBase.Index
    GamePadDeviceBase.PressedButtons
    GamePadDeviceBase.ReleasedButtons
    GamePadDeviceBase.DownButtons
    GamePadDeviceBase.IndexChanged
    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