IInputSource Interface
Namespace: Stride.InputAssembly: 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
Name | Description | |
---|---|---|
Properties | ||
Devices | All the input devices currently proviced by this source |
|
Methods | ||
Initialize(InputManager) | Initializes the input source |
|
Pause() | Called when input should be paused, for example when the application leaves the foreground |
|
Resume() | Called when input should be resumed, when an application enters the forground |
|
Scan() | Allows the source to take it's time to search for new devices |
|
Update() | Update the input source and possibly add/remove input devices |
Properties
Devices
All the input devices currently proviced by this source
TrackingDictionary<Guid, IInputDevice> Devices { get; }
Property Value
Type | Description |
---|---|
TrackingDictionary<System.Guid, IInputDevice> |
Methods
Initialize(InputManager)
Initializes the input source
void Initialize(InputManager inputManager)
Parameters
Type | Name | Description |
---|---|---|
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()