Interface IInputContextManager
Manages multiple input contexts and their processing order
public interface IInputContextManager
Methods
ActivateContext(string)
Activates an input context
void ActivateContext(string name)
Parameters
name
string
AddContext(IInputContext)
Adds an input context to the manager
void AddContext(IInputContext context)
Parameters
context
IInputContext
DeactivateContext(string)
Deactivates an input context
void DeactivateContext(string name)
Parameters
name
string
GetAllContexts()
Gets all registered contexts
IReadOnlyList<IInputContext> GetAllContexts()
Returns
GetContext(string)
Gets an input context by name
IInputContext? GetContext(string name)
Parameters
name
string
Returns
ProcessInputAsync(IInputDevice, CancellationToken)
Processes input through all active contexts in priority order
Task ProcessInputAsync(IInputDevice inputDevice, CancellationToken ct = default)
Parameters
inputDevice
IInputDevicect
CancellationToken
Returns
RemoveContext(string)
Removes an input context from the manager
bool RemoveContext(string name)
Parameters
name
string