class

InputContext

Module
Input
Header
#include "Input/InputContext.h"
Namespace
Mowo

Constructors

SignatureNameDescription
explicit InputContext(const std::string& name)InputContext
~InputContext() = default~InputContext

Public functions

ReturnsNameDescription
const std::string&GetName
voidSetEnabled
boolIsEnabled
voidSetConsumesInputIf true, this context blocks lower-priority contexts from receiving input
boolConsumesInput
voidSetPriorityStack ordering weight: InputActionSystem::PushContext inserts so the stack stays sorted ascending, back = highest = evaluated first.
int32_tGetPriority
voidSetRuntimeOnlyRuntime-only contexts are rebuilt from other data every session (the Enhanced-Input subsystem mirrors IMC assets into synthetic contexts).
boolIsRuntimeOnly
InputActionMap&GetActionMap
const InputActionMap&GetActionMap

Function details

InputContext

C++
explicit InputContext(const std::string& name)

~InputContext

C++
~InputContext() = default

GetName

C++
const std::string& GetName() const

SetEnabled

C++
void SetEnabled(bool enabled)

IsEnabled

C++
bool IsEnabled() const

SetConsumesInput

C++
void SetConsumesInput(bool consumes)

If true, this context blocks lower-priority contexts from receiving input

ConsumesInput

C++
bool ConsumesInput() const

SetPriority

C++
void SetPriority(int32_t priority)

Stack ordering weight: InputActionSystem::PushContext inserts so the stack stays sorted ascending, back = highest = evaluated first. Equal priorities keep push order (a later push lands above earlier equals), which preserves the legacy "push means top" behaviour at the default 0.

GetPriority

C++
int32_t GetPriority() const

SetRuntimeOnly

C++
void SetRuntimeOnly(bool runtimeOnly)

Runtime-only contexts are rebuilt from other data every session (the Enhanced-Input subsystem mirrors IMC assets into synthetic contexts). SaveBindings skips them — persisting one would boot a phantom copy that shadows the real asset next session.

IsRuntimeOnly

C++
bool IsRuntimeOnly() const

GetActionMap

C++
InputActionMap& GetActionMap()

GetActionMap

C++
const InputActionMap& GetActionMap() const
Generated from Input/InputContext.h via input.json · Nov 2, 2026Version 1.0.0