Lyra: Merging the two Input Mappings Contexts

Hi, I am trying to use the Combo-Graph plugin in conjuction with my Lyra Based Project. However it only comes with ability to select one Input Mapping Context but want the combos to use either KBM or Gamepad depending on the player’s last input. I asked on the Combo-Graph discord and someone suggested that I merge the two IMCs together. Before I go ahead and do so, I am wondering if there is a particular reason that Gamepad and KBM contexts are separated? Like if I merge them would it cause issues with the way Lyra works?

My understanding is Lyra 5.3 may have many changes to the way inputs are configured.

As of Lyra 5.2, the main reason for their organization seems to be to ensure that only contexts which are actually used on any given platform will be loaded.

For example there isn’t really a need to add MKB inputs on a console, nor is there reason to add Gamepad inputs on a PC that has no Gamepad. The Lyra 5.2 organization separates these and loads what is needed.

There shouldn’t really be much of a penalty to moving all of those into one huge IMC. If that is what your plugin requires, then you can do it. (Also, that plugin should probably be updated, this seems like an oversight to require a single monolithic IMC).

As long as you have proper Lyra input settings and able to use Enhanced Input actions, you can then use them as transitions in a combo graph.

It only allows you to define a mapping context in a graph as one of its properties to help in displaying icons, it doesn’t actually Add or Remove the context from Enhanced Input.

It’s really cosmetic only and only used in Editor, you don’t have to merge your input mapping contexts.

Excerpts from the docs: Enhanced Input | Combo Graph (at the very bottom of the page)

How does it work? Internally, the plugin will look for that Mapping Context and search for the mappings defined if an Input Action matching the edge is available. If one is found, it will lookup the IconsDataTable for each defined user input in the mapping, consider the IconPreference , and if a corresponding icon is found for the input, will use that Texture to draw the icon in the graph.