Enhanced Input: Can't get Default Input Mapping Contexts to work

Hello,

I can’t get Enhanced Input Default Input Mapping Contexts to work (using UE 5.5).

Looking at the engine source code, these contexts should automatically be added when constructor UEnhancedPlayerInput::UEnhancedPlayerInput() is called.

Are they some conditions for this feature to work?

Note that adding a mapping context through a blueprint works though.

Thanks in advance.

Found the cause of the problem:

IEnhancedInputSubsystemInterface::RebuildControlMappings() is not called when Default Input Mapping Contexts are added at initialization time.

If RebuildControlMappings() is called after initialization (by RequestRebuildControlMappings or AddMappingContext blueprint nodes for instance) then the mapping context works as expected.