Synced
InputBackendCatalog.CreateEventSource
Section titled “InputBackendCatalog.CreateEventSource”
- Creates an input event source for one window or for the entire application.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Adapter.Input
Declaration
Section titled “Declaration”public Inno.Adapter.Input.IInputEventSource Inno.Adapter.Input.InputBackendCatalog.CreateEventSource(Inno.Adapter.Input.InputBackendId backend, Inno.Platform.IPlatformWindow window, bool acceptAllWindows)Parameters
Section titled “Parameters”Parameter backend: input implementation selected by the composition root.
Parameter window: Primary platform window whose input is accepted by the source.
Parameter acceptAllWindows: Whether the source accepts events from every window owned by the application.
Returns
Section titled “Returns”A caller-owned backend-neutral input event source.
Exceptions
Section titled “Exceptions”Exception T:System.NotSupportedException: Thrown when the catalog does not contain the selected backend or the platform is incompatible.
Exception T:System.InvalidOperationException: The selected provider returned no service.