Hello all,
Maybe it's just been a long day, but I am having a total brain fart. I use the Control X and Joystick 2 objects for controls and am setting up keybindings. What is the best way to detect if a key is already used?
For example, I have global values dedicated to the jump button for keyboard, attack button for keyboard, jump button for gamepad, attack button for gamepad, etc. I'm trying to allow the player to setup whatever button they want individually and am at a loss on how to detect if they have already used a button - and if so, make the new button take precedence. Such as if "A" is set to Jump, and "X" is set to Attack, and the player tries to set "X" as Jump, I'd want it to swap the buttons.
Thanks!