Hi, I’m trying to finish my menu settings in a game that uses keyboard as a controller. I was able, with the Enhanced Input System, to allow the players to change their bindings but I would like that, whenever the player uses the same key (for example, they try to set E for an action but the Interaction action uses it already), the code swaps the two keys so that there isn’t any conflict and less hassle for the player.
I think I figured out the logic but I’m a little loss at the swapping part. Basically, it should occurs at the part of my code when the player is trying to set a new key: Get Player Controller → Get Enhanced Input Local Player Subsystem → Get Current Key Profile → Get Player Mappings Rows → Values → For Each Loop
Then once projected onto an array, compare the new key to every key inside the system, set a condition “If they are the same key” → Branch → If true, swap the two keys
Can someone help me figure it out? Thank you very much in advance for your attention ![]()