Shift and Right click - input package

Im working on a movement system, Right click to go to, Hold Shift and right click to add move commands to a queue, and execute when Shift is released.

How I can set up the Shift and Right click action in the InputAsset, as distinct from just Right Click?

1 Answer

1

This sounds like you want to use “Add Binding with One Modifier” in the input asset. The docs say that the binding will only trigger if the modifier key is held when the binding is pressed:

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.4/manual/ActionBindings.html#one-modifier

The result is weird, holding the binding and pressing the modifier works, when I would assume it should work the other way around. That is holding the modifier(shift) down, and then using the binding (right click)

That is bizarre and certainly not how it is described in the documentation. I'm sorry that I don't have experience using this feature, I just remembered seeing it in the input asset options.