logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IUiPrimaryControllerManager

    Manages UI input routing based on the primary deviceand configured game session policies.

    Namespace: Serenity.InputGateway.Domain.Interfaces.Components
    Assembly: Serenity.InputGateway.Application.dll
    Syntax
    public interface IUiPrimaryControllerManager

    Properties

    PrimaryDeviceId

    Returns the identifier of the currently assigned primary device,or null if there is none.

    Declaration
    string PrimaryDeviceId { get; }
    Property Value
    Type Description
    string

    The device ID of the primary device, or null if none is assigned.

    Methods

    ApplyUiPolicy()

    Applies the UI routing policy based on the current settings(e.g. SinglePlayer → all devices; LocalMultiplayer → primary only).

    Declaration
    void ApplyUiPolicy()

    Initialize(ILogService)

    Initializes the manager with a logging service for diagnostic output.

    Declaration
    void Initialize(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    The logging service for diagnostic output.

    SetPrimaryDevice(string)

    Sets the primary device explicitly for the UI.

    Declaration
    void SetPrimaryDevice(string deviceId)
    Parameters
    Type Name Description
    string deviceId

    The unique identifier of the device (usually a string from InputSystem).

    In this article
    © 2026 Serenity. All Rights Reserved