Why is "Add Mapping Context" deleting all my key bindings?

When my character first gets possessed, all my correct Input Mapping Contexts (IMCs) get added to my Player Controller’s Enhanced Input Local Player Subsystem (EILPS), and all my inputs work correctly.

But later on, I add a new IMC with a higher priority so I can do some quick time events with the same buttons. I have set up the IMC assect correctly and my input actions have the correct key bindings. Except when I add the IMC to the EILPS, and then query what keys are bound to an input action, using “Query Keys Mapped to Action”, that IS in the IMC (so I can display the correct button graphic), I get an array size of 0.

What is going on? Even more frustrating is it was working once earlier tonight and I don’t know what I did to make it happen and even less of an idea how I broke it.

After bashing my head against the wall all weekend and several additional variations of Googling, I finally cracked the case:

The new input maps aren’t available by default immediately afterwards in the same frame. When I put even a 1 frame delay in between adding the new context map and using it, it worked fine.

I had already tried adding the “Request Rebuild Control Mappings” node, but eventually I discovered that I had to split the “options” pin and check “Options Force Immediately” in order to have the updated control maps available when I needed them.

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