Interface IUiInputRouter
Interface for routing UI input to player input handlers based on device IDs.
Namespace: Serenity.InputGateway.Application.Interfaces.Components
Assembly: Serenity.InputGateway.Application.dll
Syntax
public interface IUiInputRouter
Methods
Initialize(object, IPlayerInputRoutingSettings, ILogService)
Initializes the UI input router with the specified player input handler and routing settings.
Declaration
void Initialize(object playerInputHandler, IPlayerInputRoutingSettings routingSettings, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| object | playerInputHandler | The player input handler to use for routing. |
| IPlayerInputRoutingSettings | routingSettings | The routing settings to configure the router. |
| ILogService | logService | The logging service for diagnostic output. |
Route(string)
Routes UI input to the specified player input handler based on the provided device ID.
Declaration
void Route(string p1DeviceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | p1DeviceId | The device ID of the primary player input handler. |
RouteAllDevices()
Routes UI input to all player input handlers.
Declaration
void RouteAllDevices()
RoutePrimaryOnly(string)
Routes UI input to the primary player input handler only.
Declaration
void RoutePrimaryOnly(string p1DeviceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | p1DeviceId | The device ID of the primary player input handler. |