Table of Contents

Class InputSourceSimulated

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

public class InputSourceSimulated : InputSourceBase, IInputSource, IDisposable
Inheritance
InputSourceSimulated
Implements
Inherited Members
Extension Methods

Properties

GamePads

public IReadOnlyList<GamePadSimulated> GamePads { get; }

Property Value

IReadOnlyList<GamePadSimulated>

Keyboards

public IReadOnlyList<KeyboardSimulated> Keyboards { get; }

Property Value

IReadOnlyList<KeyboardSimulated>

Mice

public IReadOnlyList<MouseSimulated> Mice { get; }

Property Value

IReadOnlyList<MouseSimulated>

Pointers

public IReadOnlyList<PointerSimulated> Pointers { get; }

Property Value

IReadOnlyList<PointerSimulated>

Methods

AddGamePad()

public GamePadSimulated AddGamePad()

Returns

GamePadSimulated

AddKeyboard()

public KeyboardSimulated AddKeyboard()

Returns

KeyboardSimulated

AddMouse()

public MouseSimulated AddMouse()

Returns

MouseSimulated

AddPointer()

public PointerSimulated AddPointer()

Returns

PointerSimulated

Dispose()

Unregisters all devices registered with RegisterDevice(IInputDevice) which have not been unregistered yet

public override void Dispose()

Initialize(InputManager)

Initializes the input source

public override void Initialize(InputManager inputManager)

Parameters

inputManager InputManager

The InputManager initializing this source

RemoveAllGamePads()

public void RemoveAllGamePads()

RemoveAllKeyboards()

public void RemoveAllKeyboards()

RemoveAllMice()

public void RemoveAllMice()

RemoveAllPointers()

public void RemoveAllPointers()

RemoveGamePad(GamePadSimulated)

public void RemoveGamePad(GamePadSimulated gamePad)

Parameters

gamePad GamePadSimulated

RemoveKeyboard(KeyboardSimulated)

public void RemoveKeyboard(KeyboardSimulated keyboard)

Parameters

keyboard KeyboardSimulated

RemoveMouse(MouseSimulated)

public void RemoveMouse(MouseSimulated mouse)

Parameters

mouse MouseSimulated

RemovePointer(PointerSimulated)

public void RemovePointer(PointerSimulated pointer)

Parameters

pointer PointerSimulated