Modify InputMappingContext in BP or C++?

I’m attempting to move to the enhanced input system, and I like a lot of it, except one thing: I want to be able to modify a context programmatically and cant find a way to do it. My use case here is that I want to load key binds from a text file, and maybe I’m going about this the wrong way.

Digging around, I can create EnhancedActionKeyMappings, but I’m stuck on finding a way to actually generate an InputMappingContext out of that, or to change the values of an existing one.

Am I missing something obvious here?

image

Progress! Ended up digging through the headers files and found it was stuck under the Mapping category.

Managed to get the broad strokes finally figured out. This is very rough proof of concept.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.