gwj-accessibility-scripts icon indicating copy to clipboard operation
gwj-accessibility-scripts copied to clipboard

[Bug] Multiple keys can be mapped to the same action

Open JestemStefan opened this issue 4 years ago • 1 comments

In rebindable keys it's possible to map multiple keys to the same action.

We should make some check if this button is already mapped somewhere and:

  1. Give an error that this key is already used and can't be mapped
  2. Map key to this action, but remove it from other action

JestemStefan avatar Jul 16 '21 11:07 JestemStefan

I would not say this is a bug. You might want multiple actions bound to one same key when these actions are used in different contexts, e.g. have "E" to interact with an object and also as some UI input in a menu. Which would be two different actions in the ActionMap.

Arguably most jam games would not need to bind two actions to one key. But in the case one does this it could lead to some frustration when facing a bug later on, leaving the programmer(s) to modify the solution.

One could implement the check and have a toggle for it. But I am not sure how complex we want to keep things here, this might be out of scope. Maybe someone from GWJ staff can decide.

In any case I would label this as a proposal and not a bug

cyrilbos avatar Oct 12 '21 14:10 cyrilbos