Prevent same Key Mapping

Hi,

how can I prevent the keybinds from having the same keys?

You check against the keys you already have mapped. Whatever you’re going to store for the mapping, you just check that you don’t have it already.

I did something similar, somehow didn’t work. Can you please show me an example?

This sort of thing

1 Like

Make an array of all the KeySelectors that you have.
When setting a new key, check if any of those selectors already has it bound.
If so, show message / remove binding / do nothing.

1 Like

Thank you for the answer and example!

1 Like