logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IPlayerInputActionBinding<TAction, TContext>

    Interface representing a player input action binding.

    Namespace: Serenity.InputGateway.Domain.Interfaces
    Assembly: Serenity.InputGateway.Domain.dll
    Syntax
    public interface IPlayerInputActionBinding<TAction, TContext> where TAction : IDisposable
    Type Parameters
    Name Description
    TAction
    TContext

    Properties

    Handler

    Gets the handler to invoke when the action is performed.

    Declaration
    Action<TContext> Handler { get; }
    Property Value
    Type Description
    Action<TContext>

    The handler as an Action delegate.

    InputAction

    Gets the input action associated with the binding.

    Declaration
    TAction InputAction { get; }
    Property Value
    Type Description
    TAction

    The input action of type TAction.

    Methods

    Bind()

    Binds the input action to the specified context.

    Declaration
    void Bind()
    Remarks

    This method sets up the necessary connections to listen for the input action and invoke the handler when the action occurs.

    Unbind()

    Unbinds the input action.

    Declaration
    void Unbind()
    Remarks

    This method removes any connections or listeners associated with the input action to prevent further invocations of the handler.

    In this article
    © 2026 Serenity. All Rights Reserved