Table of Contents

Interface IInputContext

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A set of input handlers, active while it is pushed to InputContextManager.

public interface IInputContext

Properties

Priority

The order of this context among the pushed ones. Higher priority contexts are offered each action first.

int Priority { get; }

Property Value

int

Methods

TryHandle(in InputActionState, Action<string>)

Offers an action. Returns true when the context handled it, which stops the action reaching the contexts below it. Pass the action's id to consumeAction to consume it.

bool TryHandle(in InputActionState state, Action<string> consumeAction)

Parameters

state InputActionState
consumeAction Action<string>

Returns

bool