Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    InputSourceSimulated Class

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

    Provides a virtual mouse and keyboard that generate input events like a normal mouse/keyboard when any of the functions (Simulate...) are called

    System.Object → InputSourceBase → InputSourceSimulated
    Derived from InputSourceSimulated:

    public class InputSourceSimulated : InputSourceBase, IInputSource, IDisposable
    Name Description
    Properties
    GamePads
    Keyboards
    Mice
    Pointers
    Methods
    AddGamePad()
    AddKeyboard()
    AddMouse()
    AddPointer()
    Dispose()
    Initialize(InputManager)
    RemoveAllGamePads()
    RemoveAllKeyboards()
    RemoveAllMice()
    RemoveAllPointers()
    RemoveGamePad(GamePadSimulated)
    RemoveKeyboard(KeyboardSimulated)
    RemoveMouse(MouseSimulated)
    RemovePointer(PointerSimulated)
    | Improve this Doc View Source

    Properties


    GamePads

    public IReadOnlyList<GamePadSimulated> GamePads { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<GamePadSimulated>

    Keyboards

    public IReadOnlyList<KeyboardSimulated> Keyboards { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<KeyboardSimulated>

    Mice

    public IReadOnlyList<MouseSimulated> Mice { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<MouseSimulated>

    Pointers

    public IReadOnlyList<PointerSimulated> Pointers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<PointerSimulated>
    | Improve this Doc View Source

    Methods


    AddGamePad()

    public GamePadSimulated AddGamePad()
    Returns
    Type Description
    GamePadSimulated

    AddKeyboard()

    public KeyboardSimulated AddKeyboard()
    Returns
    Type Description
    KeyboardSimulated

    AddMouse()

    public MouseSimulated AddMouse()
    Returns
    Type Description
    MouseSimulated

    AddPointer()

    public PointerSimulated AddPointer()
    Returns
    Type Description
    PointerSimulated

    Dispose()

    public override void Dispose()
    Overrides
    InputSourceBase.Dispose()

    Initialize(InputManager)

    public override void Initialize(InputManager inputManager)
    Parameters
    Type Name Description
    InputManager inputManager
    Overrides
    InputSourceBase.Initialize(InputManager)

    RemoveAllGamePads()

    public void RemoveAllGamePads()

    RemoveAllKeyboards()

    public void RemoveAllKeyboards()

    RemoveAllMice()

    public void RemoveAllMice()

    RemoveAllPointers()

    public void RemoveAllPointers()

    RemoveGamePad(GamePadSimulated)

    public void RemoveGamePad(GamePadSimulated gamePad)
    Parameters
    Type Name Description
    GamePadSimulated gamePad

    RemoveKeyboard(KeyboardSimulated)

    public void RemoveKeyboard(KeyboardSimulated keyboard)
    Parameters
    Type Name Description
    KeyboardSimulated keyboard

    RemoveMouse(MouseSimulated)

    public void RemoveMouse(MouseSimulated mouse)
    Parameters
    Type Name Description
    MouseSimulated mouse

    RemovePointer(PointerSimulated)

    public void RemovePointer(PointerSimulated pointer)
    Parameters
    Type Name Description
    PointerSimulated pointer

    Inherited Members

    InputSourceBase.Devices
    InputSourceBase.Update()
    InputSourceBase.Pause()
    InputSourceBase.Resume()
    InputSourceBase.Scan()
    InputSourceBase.RegisterDevice(IInputDevice)
    InputSourceBase.UnregisterDevice(IInputDevice)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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