Table of Contents

Interface IInputSource

Namespace
Stride.Input
Assembly
Stride.Input.dll

An abstraction for a platform specific mechanism that provides input in the form of one of multiple IInputDevice(s). An input source is responsible for cleaning up it's own devices at cleanup

public interface IInputSource : IDisposable
Inherited Members
Extension Methods

Properties

Devices

All the input devices currently proviced by this source

TrackingDictionary<Guid, IInputDevice> Devices { get; }

Property Value

TrackingDictionary<Guid, IInputDevice>

Methods

Initialize(InputManager)

Initializes the input source

void Initialize(InputManager inputManager)

Parameters

inputManager InputManager

The InputManager initializing this source

Pause()

Called when input should be paused, for example when the application leaves the foreground

void Pause()

Resume()

Called when input should be resumed, when an application enters the forground

void Resume()

Scan()

Allows the source to take it's time to search for new devices

void Scan()

Update()

Update the input source and possibly add/remove input devices

void Update()