Facepunch / sbox-issues

176 stars 12 forks source link

Multiple input actions of the same key trigger unrelated binds #5301

Open youarereadingthis opened 6 months ago

youarereadingthis commented 6 months ago

Describe the bug

If you have two binds that use the same key they'll work but also trigger other, clearly unrelated binds.

To Reproduce

  1. Bind a key to C.
  2. Bind another key to C.
  3. And another, for good measure.
  4. Chances are it'll press some other bind too, in my case something bound to CTRL.

Expected behavior

You should be able to bind multiple actions to the same key and not have it act as if you pressed an unrelated key.

Media/Files

No response

Additional context

My use case is that I have an editor with a LOT of binds that I would like to be separately rebindable and not have "Tool Modifier 1" be "Run" or vice versa, which is my current workaround.

DevulTj commented 5 months ago

Can you please provide your .sbproj so I can use the exact same set of inputs?

youarereadingthis commented 5 months ago

Here is my .sbproj. Now it is activating inputs meant for CTRL and SPACE when you press either of them. So you jump and crouch at the same time if you press SPACE or CTRL.

.sbproj.zip

youarereadingthis commented 2 months ago

I've encountered this problem yet again, both on keyboard and controller, both in sbox-dev and the published version of the game. Removing some editor-specific action mappings solved it for the keyboard.

However, the controller is still emulating the left/right arrows as well as A/D when you use the Left/Right Triggers. This is becoming a nuisance.

If you have the time and inclination I can add you to the Helicopter-chan repo so that you can use it to reproduce the issue. I'll contact you on Discord if so. I have no special input system for the standard(non-editor) game so that is not the problem.