Class InputSourceSimulated
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
Keyboards
public IReadOnlyList<KeyboardSimulated> Keyboards { get; }
Property Value
Mice
public IReadOnlyList<MouseSimulated> Mice { get; }
Property Value
Pointers
public IReadOnlyList<PointerSimulated> Pointers { get; }
Property Value
Methods
AddGamePad()
public GamePadSimulated AddGamePad()
Returns
AddKeyboard()
public KeyboardSimulated AddKeyboard()
Returns
AddMouse()
public MouseSimulated AddMouse()
Returns
AddPointer()
public PointerSimulated AddPointer()
Returns
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
InputManagerThe 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