class

MEnhancedInputSubsystem

Module
Game
Header
#include "Game/MEnhancedInputSubsystem.h"
Namespace
Mowo

Type aliases

AliasDescription
using FActionResolver = std::function<const InputActionAsset*(const FInputMappingEntry&)>

Constructors

SignatureNameDescription
MEnhancedInputSubsystem()MEnhancedInputSubsystem
~MEnhancedInputSubsystem()~MEnhancedInputSubsystem

Public functions

ReturnsNameDescription
voidInitializeDefaults to the global InputActionSystem::Get() when actions is null.
voidShutdown
voidSetInputSystemMoves the active mapping contexts to another input instance (a split-screen player's own): torn down on the old one, rebuilt on the new one, priorities kept.
voidAddMappingContextHigher priority contexts evaluate first (they sit on top of the stack).
voidRemoveMappingContext
voidClearMappingContexts
boolHasMappingContext
size_tGetMappingContextCount
voidRegisterActionAssetAn InputAction asset's own modifiers and triggers apply everywhere it is mapped.
voidUnregisterActionAsset
voidPopulateContextMirrors one mapping context into a runtime context — actions, bindings, the referenced action asset's modifiers/triggers, then the per-mapping triggers.

Function details

MEnhancedInputSubsystem

C++
MEnhancedInputSubsystem()

~MEnhancedInputSubsystem

C++
~MEnhancedInputSubsystem()

Initialize

C++
void Initialize(InputActionSystem* actions = nullptr)

Defaults to the global InputActionSystem::Get() when actions is null.

Shutdown

C++
void Shutdown()

SetInputSystem

C++
void SetInputSystem(InputActionSystem* actions)

Moves the active mapping contexts to another input instance (a split-screen player's own): torn down on the old one, rebuilt on the new one, priorities kept.

AddMappingContext

C++
void AddMappingContext(const InputMappingContextAsset* imc, int32_t priority)

Higher priority contexts evaluate first (they sit on top of the stack).

RemoveMappingContext

C++
void RemoveMappingContext(const InputMappingContextAsset* imc)

ClearMappingContexts

C++
void ClearMappingContexts()

HasMappingContext

C++
bool HasMappingContext(const InputMappingContextAsset* imc) const

GetMappingContextCount

C++
size_t GetMappingContextCount() const

RegisterActionAsset

C++
void RegisterActionAsset(const InputActionAsset* action)

An InputAction asset's own modifiers and triggers apply everywhere it is mapped. Rebuild resolves each mapping's .miaction through the AssetManager, then the active project's disk; a host with neither (tests, a headless server) registers the asset objects it built directly, matched by action name or source path.

UnregisterActionAsset

C++
void UnregisterActionAsset(const InputActionAsset* action)

PopulateContext

C++
static void PopulateContext(const InputMappingContextAsset& imc, InputContext& ctx, const FActionResolver& resolveAction)

Mirrors one mapping context into a runtime context — actions, bindings, the referenced action asset's modifiers/triggers, then the per-mapping triggers. Static so the editor's conflict check builds exactly the context the runtime evaluates. A null resolver applies no asset-level data.

Generated from Game/MEnhancedInputSubsystem.h via game.json · Nov 5, 2026Version 1.0.0